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

danpetry notifications at github.com
Thu Jan 10 16:03:22 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 = {

Ah ok, thanks for giving that netreg example, I was imagining some other startup code outside the module calling `registry_src_register`. Thanks for clarifying

-- 
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_r246792849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190110/4c76fc97/attachment.html>


More information about the notifications mailing list