fix: rename uuid property to id
add: WIP discovery stuff
This commit is contained in:
parent
074c5c5750
commit
d679d99a92
6 changed files with 23 additions and 67 deletions
models
|
@ -56,8 +56,8 @@ controller_load(MDB_env *mdb_env)
|
|||
|
||||
MDB_val value;
|
||||
|
||||
controller_load_single(mdb_txn, mdb_dbi, KEY_META_UUID, &value);
|
||||
memmove(new_controller->uuid, (uuid_t*)value.mv_data, sizeof(uuid_t));
|
||||
controller_load_single(mdb_txn, mdb_dbi, KEY_META_ID, &value);
|
||||
memmove(new_controller->id, (uuid_t*)value.mv_data, sizeof(uuid_t));
|
||||
|
||||
controller_load_single(mdb_txn, mdb_dbi, KEY_META_NAME, &value);
|
||||
strncpy(new_controller->name, (char*)value.mv_data, CONTROLLER_NAME_LENGTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue