1CONFDB_KEY_CREATE(3C)orosync Cluster Engine Programmer's ManuCaOlNFDB_KEY_CREATE(3)
2
3
4

NAME

6       confdb_key_create - Add a new key/value pair to the Configuration Data‐
7       base
8

SYNOPSIS

10       #include <corosync/confdb.h>
11
12       confdb_error_t  confdb_key_create(confdb_handle_t  handle,  unsignedint
13       parent_object_handle , void *key_name , void *value , int value_len );
14
15

DESCRIPTION

17       The  confdb_key_create function adds a new key/value pair to the speci‐
18       fied parent object. Parent objects may contain many keys and also  sub-
19       objects.  The  names of keys are not required to be unique: if you call
20       confdb_key_create twice with the same parameters you  will  create  two
21       identical  keys  in  the  database.    The parent object should already
22       exist in the database, it can be  OBJECT_PARENT_HANDLE  (the  top-level
23       object) but this is not recommended.   Unlike objects, keys do not have
24       handles, so you can't go directly to a non-unique key without using the
25       confdb_key_iter function.
26

RETURN VALUE

28       This call returns the CONFDB_OK value if successful, otherwise an error
29       is returned.
30

ERRORS

32       The errors are undocumented.
33

SEE ALSO

35       confdb_overview(8),      confdb_initialize(3),      confdb_finalize(3),
36       confdb_dispatch(3),  confdb_object_create(3), confdb_object_destroy(3),
37       confdb_object_parent_get(3),                      confdb_key_create(3),
38       confdb_key_delete(3),     confdb_key_get(3),     confdb_key_replace(3),
39       confdb_object_find_start(3),                     confdb_object_find(3),
40       confdb_object_iter_start(3),                     confdb_object_iter(3),
41       confdb_key_iter_start(3), confdb_key_iter(3),
42
43corosync Man Page                 2008-04-17              CONFDB_KEY_CREATE(3)
Impressum