aboutsummaryrefslogtreecommitdiffstats
path: root/src/interfaces/localed
Commit message (Collapse)AuthorAgeFilesLines
* fill in localed skeleton funcskremlin2014-08-251-22/+72
|
* change polkit-auth.{c,h} to util.{c,h}kremlin2014-08-251-1/+1
| | | | | we are going to include the /etc/os-release changing functions in here.
* add polkit auth object, compile it in makefile, add header to interfaceskremlin2014-08-161-0/+2
| | | | | src/polkit-auth.c and its header are seperately built objects, linked to interfaces, which expose a single, safe auth checking function
* include polkit.h in all interfaces, edit makefile accordinglykremlin2014-08-161-0/+1
|
* minor, retab \t's to four spaceskremlin2014-08-061-37/+37
|
* minor, s/g_print/g_printfkremlin2014-08-051-1/+1
|
* minor, add ISC license blurbs to interfaces/foo/foo.hkremlin2014-08-051-1/+17
|
* (8) [final] modify main() to call correct clean sequencekremlin2014-08-051-1/+6
| | | | | | | 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.
* (7) add set_signal_handlers() to bind functions during initkremlin2014-08-051-0/+8
| | | | | | | 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.
* (6) add handler for unix termination signalskremlin2014-08-051-0/+9
| | | | | | | | 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.
* (5) fix foo_mem_clean() functions to avoid race cond.kremlin2014-08-051-2/+8
| | | | | | | | | | 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)
* (4) move on_name_acquired functionality to on_bus_acquiredkremlin2014-08-051-15/+24
| | | | | | | | | 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
* (3) add needed GLib headers, move loop and bus descr out of main into globalkremlin2014-07-291-3/+6
| | | | | | 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
* (2) move on_name_lost() callback to appropriate commend-bounded regionkremlin2014-07-291-9/+9
| | | | minor, builds
* (1) add <interface>.h and #include it in corresponding .ckremlin2014-07-292-0/+2
| | | | nessecary for compiler unambiguity. minor, builds
* minor, clarify what "misc functions" are in commentskremlin2014-07-291-1/+1
|
* minor, clarify "dbus signal" vs. "unix signal" in commentskremlin2014-07-291-2/+2
|
* include glib-unix.h in interface fileskremlin2014-07-291-0/+1
| | | | | it's a good idea to use glib signal handling, most use cases will be running gnome
* remove genfiles from repo, instead generate in makefilekremlin2014-07-232-2809/+0
| | | | | | genfiles (-gen.{c,h}) should be generated at build time instead of being included in the repo. remove them & add relevant recipes/pre-reqs include genfiles in 'clean' recipe
* copy and regex localed, timedated, and logind from hostnamedkremlin2014-07-221-0/+112
| | | | | they now start up and display the proper methods/functions on the system bus, albeit with no functionality
* clean up hostnamed.c, clear out localed.c for copyingkremlin2014-07-221-138/+0
| | | | | | | fix minor memory management issues in hostnamed.c. localed.c was previously based on a version of hostnamed.c i copied, however it has strayed too far away from the working version and must be recopied/refactored.
* change gen script to use ksh, remove namespace option, regen genfileskremlin2014-07-222-535/+535
| | | | | | | | | rewrite scripts/gen-gdbus-interfaces.sh to use ksh (#!/bin/sh) to cut down on inbox spam, also fixed prior bug where generated files had bad paths in their #includes. removed namespacing option from gdbus-codegen as linked objects do not run into naming conflicts as the previous commits did. regenerate all genfiles (src/interfaces/foo/foo-gen.{c.h}) accordingly.
* include gprintf.h in hostnamed.c/localed.c to allow strict compilationkremlin2014-07-151-0/+2
|
* remove includes in non-gen'd interf files, they're linked properly nowkremlin2014-07-151-53/+19
| | | | | | | 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
* untouched genfiles now work with linking system, revert localed-gen.ckremlin2014-07-151-0/+133
| | | | | | previously you needed to edit genfiles as to not re-implement boilerplate methods. linking (instead of #include'ing) avoids this and allows genfiles to work without edit, as intended.
* get rid of non-generated interface headers, we don't need themkremlin2014-07-151-17/+0
|
* more work on managing four interfaces as separate PIDs, new makefile rules ↵kremlin2014-07-081-2/+1
| | | | for building and installing standalone interface binaries, a little documentation and preproccessor logic
* (1) regenerate leaner genfiles, we're not using the object manager ↵kremlin2014-07-084-839/+182
| | | | functionality (2) modify gen-gdbus-interfaces to exclude object manager functionality (3) make localed skeleton (4) namespace hostnamed's and localed's bus/name functions properly (5) edit main.c to init localed
* regenerate proper namespaced code for other 3 interfaces, fix their includes ↵kremlin2014-07-082-727/+1433
| | | | accordingly
* add license ISC license blurbskremlin2014-06-222-0/+32
|
* regenerate interface types, clean up gen scriptkremlin2014-06-202-0/+2809
|
* blow away improperly generated interface types (bad prefix)kremlin2014-06-202-2809/+0
|
* add gdbus-codegen fileskremlin2014-06-173-1/+2809
|
* remove crapfile, rename 'modules' -> 'interfaces'kremlin2014-06-031-0/+1