#include <stdio.h>

#include <gtk/gtk.h>
#include <gtk/gtkunixprint.h>

static gboolean single_printer(GtkPrinter *printer, gpointer data) {
    printf("Printer name: %s\n", gtk_printer_get_name(printer));
    return FALSE;
}

int main(int argc, char *argv[])
{
    gtk_init(&argc, &argv);

    printf("Enumerating your printers:\n");
    gtk_enumerate_printers(single_printer, NULL, NULL, TRUE);

}

