Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | minor, add a TODO to hostnamed.c i caught | kremlin | 2014-08-05 | 1 | -0/+4 |
| | |||||
* | (8) [final] modify main() to call correct clean sequence | kremlin | 2014-08-05 | 3 | -3/+19 |
| | | | | | | | 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 init | kremlin | 2014-08-05 | 3 | -0/+24 |
| | | | | | | | 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 signals | kremlin | 2014-08-05 | 3 | -0/+27 |
| | | | | | | | | 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. | kremlin | 2014-08-05 | 3 | -6/+24 |
| | | | | | | | | | | 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_acquired | kremlin | 2014-08-05 | 4 | -50/+74 |
| | | | | | | | | | 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 global | kremlin | 2014-07-29 | 3 | -9/+18 |
| | | | | | | 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 region | kremlin | 2014-07-29 | 3 | -27/+27 |
| | | | | minor, builds | ||||
* | (1) add <interface>.h and #include it in corresponding .c | kremlin | 2014-07-29 | 6 | -0/+6 |
| | | | | nessecary for compiler unambiguity. minor, builds | ||||
* | see full message -- safe signal/lifetime/glib code | kremlin | 2014-07-29 | 2 | -33/+78 |
| | | | | | | | | | | | | | | | | | | | this unusually dense commit is the product of me using hostnamed as a prototyping bed, you should instead follow the next numbered series of commits to proceed this one, as they are the same changes but made incrementally and gradually across the other three interfaces. added: * proper lifetime handling, everything coordinated in a gmainloop such that daemons don't clean their memory twice or trip over the last instance's unclosed file descriptors, etc. * threadsafe unix termination signal handling * more intuitive runtime, daemons immidietly either start up perfectly and print a verification or crash and print a reason/probable solution * some bugfixes detailed in further individual commits | ||||
* | minor, clarify what "misc functions" are in comments | kremlin | 2014-07-29 | 4 | -4/+4 |
| | |||||
* | minor, clarify "dbus signal" vs. "unix signal" in comments | kremlin | 2014-07-29 | 4 | -8/+8 |
| | |||||
* | include glib-unix.h in interface files | kremlin | 2014-07-29 | 4 | -0/+4 |
| | | | | | it's a good idea to use glib signal handling, most use cases will be running gnome | ||||
* | remove genfiles from repo, instead generate in makefile | kremlin | 2014-07-23 | 8 | -21486/+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 hostnamed | kremlin | 2014-07-22 | 3 | -0/+347 |
| | | | | | they now start up and display the proper methods/functions on the system bus, albeit with no functionality | ||||
* | hostname1 now returns hostname minus domain info | kremlin | 2014-07-22 | 1 | -4/+10 |
| | | | | also initializes pointer array properly, no more GLib warnings | ||||
* | clean up hostnamed.c, clear out localed.c for copying | kremlin | 2014-07-22 | 2 | -154/+11 |
| | | | | | | | 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. | ||||
* | empty main.c | kremlin | 2014-07-22 | 1 | -27/+1 |
| | |||||
* | cut out config.c & config.h, they are unnessecary | kremlin | 2014-07-22 | 2 | -101/+0 |
| | |||||
* | tighten up memory management in hostnamed.c | kremlin | 2014-07-22 | 1 | -8/+12 |
| | |||||
* | refactor hostnamed.c to work with namespace genfile change | kremlin | 2014-07-22 | 1 | -27/+25 |
| | |||||
* | cut comments in main.c, prepare it to be removed | kremlin | 2014-07-22 | 1 | -13/+3 |
| | |||||
* | change gen script to use ksh, remove namespace option, regen genfiles | kremlin | 2014-07-22 | 8 | -4270/+4270 |
| | | | | | | | | | 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 compilation | kremlin | 2014-07-15 | 2 | -0/+4 |
| | |||||
* | cut out unnessecary #include's in main.c, prepare to deprecate | kremlin | 2014-07-15 | 1 | -5/+0 |
| | | | | | | we're going to move towards having all four daemons exist as seperate executables managed exclusively by DBus (startup, lifetime, etc.) so i'm moving towards getting rid of the one "main" executable. | ||||
* | remove includes in non-gen'd interf files, they're linked properly now | kremlin | 2014-07-15 | 4 | -61/+48 |
| | | | | | | | 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.c | kremlin | 2014-07-15 | 1 | -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 them | kremlin | 2014-07-15 | 4 | -66/+0 |
| | |||||
* | get rid of ifdef maze in main.c, the binaries will be compiled sep. | kremlin | 2014-07-15 | 1 | -32/+17 |
| | |||||
* | set hostnamed's 'hostname' property before export | kremlin | 2014-07-11 | 1 | -1/+9 |
| | |||||
* | more work on managing four interfaces as separate PIDs, new makefile rules ↵ | kremlin | 2014-07-08 | 3 | -30/+44 |
| | | | | for building and installing standalone interface binaries, a little documentation and preproccessor logic | ||||
* | (1) regenerate leaner genfiles, we're not using the object manager ↵ | kremlin | 2014-07-08 | 12 | -2964/+195 |
| | | | | 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 ↵ | kremlin | 2014-07-08 | 6 | -3769/+6303 |
| | | | | accordingly | ||||
* | fix previous commit (forgot to escape newline), regenerate hostnamed with ↵ | kremlin | 2014-07-08 | 3 | -909/+909 |
| | | | | proper namespace changes, fix hostnamed.c accordingly | ||||
* | cut out old XML install cruft | kremlin | 2014-07-03 | 3 | -110/+0 |
| | |||||
* | (1) modify gen-gdbus-interfaces.sh to generate nessecary subclasses | kremlin | 2014-07-02 | 3 | -3961/+788 |
| | | | | | | (2) regenerate hostnamed genfiles accordingly (3) add in skeleton functions for handling hostnamed properties. (4) celebrate, as hostnamed.c now serves as a copyable skeleton for the other three | ||||
* | (1) updated ispect xml to reflect recent undocumented changes in hostnamed | kremlin | 2014-07-02 | 3 | -114/+5104 |
| | | | | | (2) implemented skeleton functions for hostnamed, attached to interface which is now (3) exported on DBus properly as a generated GDBusInterfaceSkeleton | ||||
* | retab | kremlin | 2014-06-27 | 2 | -17/+17 |
| | |||||
* | replace C++ style comments | kremlin | 2014-06-27 | 3 | -8/+6 |
| | |||||
* | cut out install code that should be handled in makefile | kremlin | 2014-06-27 | 4 | -91/+33 |
| | |||||
* | clean up config.c | kremlin | 2014-06-26 | 1 | -63/+67 |
| | |||||
* | drop persistent file handlers, use rc.d 'reload' instead | kremlin | 2014-06-26 | 1 | -30/+13 |
| | |||||
* | more work on xml configuration setting.. | kremlin | 2014-06-26 | 2 | -69/+88 |
| | |||||
* | minor, fix system call logic | kremlin | 2014-06-26 | 1 | -1/+1 |
| | |||||
* | see previous commit, forgot 'git add'.. | kremlin | 2014-06-26 | 2 | -5/+8 |
| | |||||
* | fix up merge conflicts to compile on strict settings | kremlin | 2014-06-26 | 1 | -4/+4 |
| | |||||
* | fixing merge conflicts | kremlin | 2014-06-26 | 2 | -15/+87 |
| | |||||
* | merge license, hostname buffer changes from master branch | kremlin | 2014-06-26 | 11 | -195/+301 |
|\ | |||||
| * | change buffer size for gethostname() to HOST_NAME_MAX to avoid accidently ↵ | kremlin | 2014-06-22 | 4 | -122/+122 |
| | | | | | | | | truncating the terminating byte on systems that handle gethostname() poorly | ||||
| * | add license ISC license blurbs | kremlin | 2014-06-22 | 11 | -0/+176 |
| | | |||||
* | | goodnight | kremlin | 2014-06-20 | 2 | -8/+101 |
| | | |||||
* | | exit func for config, close()s and free()s | kremlin | 2014-06-20 | 1 | -2/+14 |
|/ | |||||
* | finish migrating old code to work with gdbus-codegen types, cleaned up ↵ | kremlin | 2014-06-20 | 4 | -78/+76 |
| | | | | config IO/install, cleaned up code all-around to work with strict compiler flags | ||||
* | blow away unnessecary errata whose functionality is covered by code from ↵ | kremlin | 2014-06-20 | 3 | -174/+25 |
| | | | | generated interfaces, clean up code, conform better to GLib, bring in gio-unix-2.0 | ||||
* | prepare old hostnamed.c code for use through proper generated gdbus ↵ | kremlin | 2014-06-20 | 1 | -8/+16 |
| | | | | interface code | ||||
* | regenerate interface types, clean up gen script | kremlin | 2014-06-20 | 8 | -0/+20100 |
| | |||||
* | blow away improperly generated interface types (bad prefix) | kremlin | 2014-06-20 | 8 | -20100/+0 |
| | |||||
* | add gdbus-codegen files | kremlin | 2014-06-17 | 11 | -3/+20100 |
| | |||||
* | fleshed out config and hostnamed more, structure for other 3 daemons.. | kremlin | 2014-06-13 | 3 | -13/+124 |
| | |||||
* | furthering hostnamed, begining configuration.. | kremlin | 2014-06-13 | 3 | -6/+142 |
| | |||||
* | property handling... | kremlin | 2014-06-10 | 1 | -5/+13 |
| | |||||
* | export proper xml FINALLY.. | kremlin | 2014-06-10 | 3 | -21/+25 |
| | |||||
* | cut out literals | kremlin | 2014-06-10 | 1 | -55/+1 |
| | |||||
* | blow away xmldefs, will read from file and checksum isntead... | kremlin | 2014-06-10 | 1 | -446/+0 |
| | |||||
* | started work on xml file installation/configuration | kremlin | 2014-06-08 | 4 | -59/+532 |
| | |||||
* | syncing... | kremlin | 2014-06-08 | 2 | -1/+52 |
| | |||||
* | syncing between computers.. | kremlin | 2014-06-05 | 2 | -11/+17 |
| | |||||
* | minor info errata | kremlin | 2014-06-05 | 1 | -0/+1 |
| | |||||
* | divorce introspect xml to conf/ file, rm hostnamed.h, update system bus ↵ | kremlin | 2014-06-05 | 2 | -79/+0 |
| | | | | config file to be more secure.. | ||||
* | syncing working files between computers... | kremlin | 2014-06-05 | 1 | -6/+7 |
| | |||||
* | added scripts to place config files, added a note in source about that | kremlin | 2014-06-03 | 1 | -1/+1 |
| | |||||
* | minor, reference issue | kremlin | 2014-06-03 | 1 | -2/+5 |
| | |||||
* | syntax cleanup, add whatever .bin.core files are to gitignore.. | kremlin | 2014-06-03 | 1 | -50/+53 |
| | |||||
* | divorce XML literal to hostnamed.h, update types to be glib-appropriate, ↵ | kremlin | 2014-06-03 | 2 | -110/+105 |
| | | | | comments | ||||
* | moved things around to make source readable, added comments, changed init ↵ | kremlin | 2014-06-03 | 1 | -9/+16 |
| | | | | method return type from void -> GError | ||||
* | update makefile and main.c to reflect changes of previous commit, also place ↵ | kremlin | 2014-06-03 | 1 | -1/+1 |
| | | | | tempfile in bin/ as abscence causes git to ignore directory's existence | ||||
* | remove crapfile, rename 'modules' -> 'interfaces' | kremlin | 2014-06-03 | 4 | -0/+0 |
| | |||||
* | hostnamed implementation coming along, implements introspectable now. had to ↵ | kremlin | 2014-05-30 | 2 | -15/+64 |
| | | | | switch back to session bus temporarily... | ||||
* | session bus -> system bus (hostnamed) | kremlin | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | get OUT | kremlin | 2014-05-30 | 2 | -0/+0 |
| | |||||
* | get hostnamed to show up on session bus, incomplete | kremlin | 2014-05-30 | 4 | -7/+121 |
| | |||||
* | begin hostnamed, clean up | kremlin | 2014-05-28 | 4 | -10/+37 |
| | |||||
* | set aside -ports makefile for now, we'll deal with it later. begin hostnamed | kremlin | 2014-05-28 | 2 | -0/+7 |
| | |||||
* | delete gnu makefile, revamp bsd makefile | kremlin | 2014-05-22 | 1 | -0/+7 |
| | |||||
* | moved src/*d -> src/modules/ | kremlin | 2014-05-22 | 4 | -0/+0 |
| | |||||
* | move 4 utils into more-specific src/modules/, update README, docs | kremlin | 2014-05-20 | 4 | -0/+4 |