[riot-notifications] [RIOT-OS/RIOT] doc/memos: RDM Runtime Configuration Architecture (#10622)

danpetry notifications at github.com
Thu Jan 10 16:29:03 CET 2019


danpetry commented on this pull request.



> +typedef struct {
+    char name[DUMMY_MAX_NAME_LEN];
+    char val[DUMMY_MAX_VAL_LEN];
+} dummy_store_storage_t;
+
+
+/* This will be our "storage device" */
+dummy_store_storage_t dummy_store[DUMMY_STORE_CAPACITY];
+
+static int registry_dummy_load(registry_store_t *store, load_cb_t cb,
+                               void *cb_arg);
+static int registry_dummy_store(registry_store_t *store, const char *name,
+const char *value);
+
+/* Storage Facility descriptor to be registered in the RIOT Registry */
+static registry_store_itf_t interface = {

Ok, I see where you are coming from - I think the reason why this tripped me up is that giving code examples implies a level of detail which isn't supposed to be being defined in this spec. It does say "conceptual examples" - maybe conceptual examples would be better represented by pseudocode, avoiding any implementation details being stated at all?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10622#discussion_r246803589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190110/00582bce/attachment.html>


More information about the notifications mailing list