[packagekit] Res: restart-schedule
Richard Hughes
hughsient at gmail.com
Sat Aug 23 14:52:54 PDT 2008
On Sat, 2008-08-23 at 13:13 -0700, dantti85-pk at yahoo.com.br wrote:
> I only track the daemon(pkcontrol), transactions list changed, and
> poke the systray program, so i could receive just the role in the
> daemon would be enough.
You really don't need to track the transactions. You just need a one
shot method, just like I'm can do with:
PkClient *client;
PkRoleEnum role;
client = pk_client_new ();
pk_client_set_tid (client, "/this_tid65");
pk_client_get_role (client, &role, NULL);
g_object_unref (client);
The trick is setting the tid on a "blank" TID. You might need to add
some API for that new trick :-)
Richard.
More information about the PackageKit
mailing list