Libconfd_db API

hi all, Is there a way to edit the configuration data in the database using c program?

Absolutely - the way to do that is to run and commit a transaction via the MAAPI API. The intro/12-c_maapi example in the examples collection seems to cover all uses of MAAPI - the most relevant part for you is probably (from the README):

* during start up: application creates MAAPI transaction and adds current date
  and time to the `start-log`  list  (shows how to use `maapi_start_trans`,
  `maapi_create` and `maapi_set_elem`)

For the full details, see the confd_lib_maapi(3) manual page.

1 Like