| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
src/polkit-auth.c and its header are seperately built objects, linked
to interfaces, which expose a single, safe auth checking function
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
main() now sets the signal handlers (via function from previous
commit) before establishing the GMainLoop as well as invoke the
proper clean()'s after unref'ing the loop. at this point all four
interfaces are at the same place structurally. builds all cases.
|
|
|
|
|
|
|
| |
this function calls attached the ones from the previous commit to the
GLib runtime properly. since we are working solely in the default context
(in terms on the GMainLoop) we are guaranteed the attached functions will
only run once.
|
|
|
|
|
|
|
|
| |
it prints a message and calls foo_mem_clean(), swiftly and safely
bringing the runtime down before letting the calling thread it was
ready to exit. note, this is handled through GLib which guarantees
it is only fired once, rather than unwrapped signals that can occur
wildly.
|
|
|
|
|
|
|
|
|
|
| |
mem_clean functions previously free()'d our pointer array without
first checking that the name/interface had properly been unexported from
dbus. checking first better guarantees all operations implicating that date
have ceased, and that it is safe to go ahead and stop the GMainLoop before
immediately returning. this causes the code just after the main_loop_begin()
call to start functioning, in our case the actual free() calls (which are now
*absolutley* safe to call)
|
|
|
|
|
|
|
|
|
| |
work that was previously done in foo_on_name_acquired(), such as attaching
the interface to the name, is now done in foo_on_bus_acquired(), as GIO docs
suggest. this fixed a bug with logind failing to export, the name_acquired function
executed executed too late to export a big interface like logind.
fix some minor error msg/consistency stuff in hostnamed, merge across pals. builds
|
|
|
|
|
|
| |
minor variable placement changes. added gboolean dbus_interface_exported,
which due to the guarantees of the name_lost, bus_acquired, and name_acquired
is a reliable source of whether not it is reasonable to try and unexport it
|
|
|
|
| |
minor, builds
|
|
|
|
| |
nessecary for compiler unambiguity. minor, builds
|
| |
|
| |
|
|
|
|
|
| |
it's a good idea to use glib signal handling, most use cases will
be running gnome
|
|
|
|
|
| |
they now start up and display the proper methods/functions on the
system bus, albeit with no functionality
|
|
|
|
|
|
|
| |
no need to include foo-gen.c as its functionality exists inside linked object
built by makefile in future commit. additionally, make all non-generated
interface files executable with a dummy main() that runs foo_init() after
setting everything up properly with a g_main_loop
|
|
|