GNOME Bugzilla – Bug 772463
[review] rename keyfile settings plugin functions/types [th/keyfile-rename-bgo772463]
Last modified: 2016-10-06 18:44:27 UTC
- all names in a header file should have an NM prefix (also for internal headers). - stuff related to keyfile settings plugin should have a common name prefix as well - names exposed by a .h file and implemented in a .c file should have a name that matches the file name. E.g. no "nm_keyfile_plugin_write_connection()" in "writer.h" Make up a new name prefix "NMS" for settings plugins and rename keyfile settings plugin related stuff have a "NMS_KF" prefix. Yes, NMSKfPlugin looks not nice, but If you have a clearer suggestions, let it hear.
lgtm. I would anyway prefer the naming alternative you proposed: NMSKeyfile* and nms_keyfile_*
Changed to NMSKeyfile/nms_keyfile_.
I think that short non-namespaced file names for plugins were ok - even if the plugin is built-in, all the functions/type names are local to the plugin. But either way is fine for me.
I like the consistency about using the word "keyfile" - directory src/settings/plugins/keyfile - name of the plugin in NetworkManger.conf (branch still waiting for ACKs...)
merged: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=1232b09536a5faf16239f67bb8094e28a0571b36