[packagekit] C dude needed

Richard Hughes hughsient at gmail.com
Wed Feb 20 14:12:39 PST 2008


I've got code to ask the user a question:

	/* check for user input */
	g_print ("Okay to remove additional packages? [N/y]\n");

	/* TODO: prompt the user */
	remove = FALSE;

	if (remove == FALSE) {
		g_print ("Cancelled!\n");
		g_free (package_id);
		return FALSE;
	}

Can anybody give me some clues on a good way to do the prompting? glib
would be lovely, but I don't mind getting down and dirty with fscanf if
need be.

Ideas welcome.

Richard.





More information about the PackageKit mailing list