X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=HACKING;h=c24e6cceec87d5dc2c58eccf7fd86da0d08bc078;hb=84cefefab29eba51ff056db7b87edaff000ac98e;hp=142f83315bfd9be45683f575ad07820672887e89;hpb=3e719ecc0f2252bfb01ce6ee057e6d63dd4b7037;p=oweals%2Fgnunet.git diff --git a/HACKING b/HACKING index 142f83315..c24e6ccee 100644 --- a/HACKING +++ b/HACKING @@ -6,7 +6,7 @@ include files: - _plugin: plugin definition - _protocol: structs used in network protocol - exceptions: - * GNUNET_config.h --- generated // FIXME: decapitalize + * gnunet_config.h --- generated * platform.h --- first included * plibc.h --- external library * gnunet_common.h --- fundamental routines @@ -27,6 +27,13 @@ exported symbols: - must start with "GNUNET_modulename_" and be defined in "modulename.c" - exceptions: those defined in gnunet_common.h +private (library-internal) symbols (including structs & macros): +- must NOT start with any prefix +- must not be exported in a way that linkers could use them or + other libraries might see them via headers; they must be either + declared/defined in C source files or in headers that are in + the respective directory under src/modulename/ and NEVER be + declared in src/include/. testcases: - must be called "test_module-under-test_case-description.c" @@ -54,8 +61,22 @@ gnunet-service-transport gnunet-service-core gnunet-daemon-hostlist gnunet-daemon-topology -gnunet-service-datastore gnunet-service-statistics -gnunet-service-dv +gnunet-service-datastore +gnunet-service-datacache gnunet-service-dht gnunet-service-fs (or just lib?) + + + + +Coding style: +- GNU guidelines apply +- declare only one variable per line, so + + int i; + int j; + + instead of + + int i,j;