41#ifndef _H_db_api_types
90#define DB_API (const xmlChar *)"db-api"
93#define DB_API_MOD (const xmlChar *)"yumaworks-db-api"
96#define DB_API_OBJ (const xmlChar *)"db-api"
99#define DB_API_REQ_OK(ST) (ST >= DB_API_ST_READY)
127 db_api_register_service (
void);
153 db_api_service_ready (
void);
202 const xmlChar *edit_operation,
203 const xmlChar *edit_xml_value);
238 const xmlChar *edit_operation,
239 const xmlChar *edit_xml_value,
240 const xmlChar *patch_id_str,
241 boolean system_edit);
312 const xmlChar *edit_operation,
313 const xmlChar *edit_xml_value,
314 const xmlChar *patch_id_str,
316 const xmlChar *insert_point,
317 const xmlChar *insert_where);
391 db_api_send_edit_full2 (
const xmlChar *edit_target,
392 const xmlChar *edit_operation,
393 const xmlChar *edit_xml_value,
394 const xmlChar *patch_id_str,
396 const xmlChar *insert_point,
397 const xmlChar *insert_where,
438 db_api_check_edit_ex (
const xmlChar **errstr);
473 db_api_send_getfilter (
const xmlChar *filespec,
476 const xmlChar *xpath_filter);
502 const xmlChar *xpath_filter);
565 db_api_start_patch2 (
const xmlChar *patch_id_str,
568 const xmlChar *comment,
597 const xmlChar *edit_id_str,
598 const xmlChar *edit_target,
599 const xmlChar *edit_operation,
600 const xmlChar *edit_xml_value,
601 const xmlChar *insert_point,
602 const xmlChar *insert_where);
653 boolean operation_ok);
709 const xmlChar *rpc_modname,
710 const xmlChar *rpc_name,
711 const xmlChar *in_filespec,
712 const xmlChar *out_filespec);
744 const xmlChar *protocol);
Data structures for DB-API service layer.
status_t db_api_send_edit(const xmlChar *edit_target, const xmlChar *edit_operation, const xmlChar *edit_xml_value)
Create a YANG Patch edit request and send it to the DB-API service on the main server.
Definition: db_api.c:2434
status_t db_api_send_edit_ex(const xmlChar *edit_target, const xmlChar *edit_operation, const xmlChar *edit_xml_value, const xmlChar *patch_id_str, boolean system_edit)
Create a YANG Patch edit request and send it to the DB-API service on the main server.
Definition: db_api.c:2493
uint32 db_api_get_last_msg_id(void)
API to get the last message ID sent by the db-api system.
Definition: db_api.c:3867
status_t db_api_send_exit_maintmode(void)
Create a <exit-maintmode> request and send it to the main server.
Definition: db_api.c:3569
status_t db_api_send_set_loglevel(const char *dlevel)
Create a <set-log-level> request and send it to the main server.
Definition: db_api.c:3588
status_t db_api_start_patch(const xmlChar *patch_id_str, boolean system_edit, yang_patch_cb_t **retcb)
Start a YANG Patch request that can have multiple edits.
Definition: db_api.c:2895
status_t db_api_send_protocol_control(const xmlChar *action, const xmlChar *protocol)
Create a <protocol-control> request and send it to the main server.
Definition: db_api.c:3824
status_t db_api_send_subrpc_request(const xmlChar *user_id, const xmlChar *rpc_modname, const xmlChar *rpc_name, const xmlChar *in_filespec, const xmlChar *out_filespec)
Create a <subrpc-request> request and send it to the main server.
Definition: db_api.c:3724
status_t db_api_send_enter_maintmode(void)
Create a <enter-maintmode> request and send it to the main server.
Definition: db_api.c:3527
status_t db_api_request_local_db_lock(void)
API to request that the local system has the Db-Edit-Lock.
Definition: db_api.c:3608
status_t db_api_release_local_db_lock(void)
API to release the local system Db-Edit-Lock.
Definition: db_api.c:3661
status_t db_api_send_getconfig(const xmlChar *filespec, boolean withdef)
Create a <getconfig> request and send it to the main server.
Definition: db_api.c:3196
status_t db_api_send_getfilter_cb(db_api_dataresp_cbfn_t cbfn, void *cookie, boolean withdef, boolean get_config, const xmlChar *xpath_filter)
Retrieve data from the server with user callback.
Definition: db_api.c:3283
status_t db_api_send_enter_maintmode_ex(boolean read_ok, boolean operation_ok)
Create a <enter-maintmode> request and send it to the main server.
Definition: db_api.c:3549
status_t db_api_send_edit_full(const xmlChar *edit_target, const xmlChar *edit_operation, const xmlChar *edit_xml_value, const xmlChar *patch_id_str, boolean system_edit, const xmlChar *insert_point, const xmlChar *insert_where)
Create a YANG Patch edit request and send it to the DB-API service on the main server.
Definition: db_api.c:2569
status_t db_api_check_edit(void)
Check on the status of an edit in progress.
Definition: db_api.c:3114
status_t db_api_register_service_ex(boolean with_db_lock)
Register the DB-API service with the YControl layer.
Definition: db_api.c:2341
void(* db_api_dataresp_cbfn_t)(status_t res, val_value_t *val, void *cookie)
user function callback template for processing the val_value_t tree for the server data response.
Definition: db_api_types.h:171
status_t
global error return code
Definition: status_enum.h:219
NETCONF protocol remote procedure call common definitions.
one value to match one type
Definition: val.h:912
One YANG Patch Request.
Definition: yang_patch.h:155
Value Node Basic Support.