confdb.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. /*
  2. * Copyright (c) 2008 Red Hat, Inc.
  3. *
  4. * All rights reserved.
  5. *
  6. * Author: Christine Caulfield (ccaulfie@redhat.com)
  7. *
  8. * This software licensed under BSD license, the text of which follows:
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions are met:
  12. *
  13. * - Redistributions of source code must retain the above copyright notice,
  14. * this list of conditions and the following disclaimer.
  15. * - Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. * - Neither the name of the MontaVista Software, Inc. nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTIBUTORS "AS IS"
  23. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. * THE POSSIBILITY OF SUCH DAMAGE.
  33. */
  34. #include <sys/types.h>
  35. #include <unistd.h>
  36. #include <fcntl.h>
  37. #include <stdlib.h>
  38. #include <errno.h>
  39. #include <unistd.h>
  40. #include "../include/saAis.h"
  41. #include "../include/ipc_gen.h"
  42. #include "../include/ipc_confdb.h"
  43. #include "../include/mar_gen.h"
  44. #include "../lcr/lcr_comp.h"
  45. #include "main.h"
  46. #include "flow.h"
  47. #include "ipc.h"
  48. #include "objdb.h"
  49. #include "service.h"
  50. #include "ipc.h"
  51. #include "logsys.h"
  52. LOGSYS_DECLARE_SUBSYS ("CONFDB", LOG_INFO);
  53. static struct objdb_iface_ver0 *global_objdb;
  54. static int confdb_exec_init_fn (struct objdb_iface_ver0 *objdb);
  55. static int confdb_lib_init_fn (void *conn);
  56. static int confdb_lib_exit_fn (void *conn);
  57. static void message_handler_req_lib_confdb_object_create (void *conn, void *message);
  58. static void message_handler_req_lib_confdb_object_destroy (void *conn, void *message);
  59. static void message_handler_req_lib_confdb_key_create (void *conn, void *message);
  60. static void message_handler_req_lib_confdb_key_get (void *conn, void *message);
  61. static void message_handler_req_lib_confdb_key_replace (void *conn, void *message);
  62. static void message_handler_req_lib_confdb_key_delete (void *conn, void *message);
  63. static void message_handler_req_lib_confdb_key_iter (void *conn, void *message);
  64. static void message_handler_req_lib_confdb_object_iter (void *conn, void *message);
  65. static void message_handler_req_lib_confdb_object_find (void *conn, void *message);
  66. static void message_handler_req_lib_confdb_object_parent_get (void *conn, void *message);
  67. static void message_handler_req_lib_confdb_write (void *conn, void *message);
  68. static void message_handler_req_lib_confdb_track_start (void *conn, void *message);
  69. static void message_handler_req_lib_confdb_track_stop (void *conn, void *message);
  70. /*
  71. * Library Handler Definition
  72. */
  73. static struct openais_lib_handler confdb_lib_service[] =
  74. {
  75. { /* 0 */
  76. .lib_handler_fn = message_handler_req_lib_confdb_object_create,
  77. .response_size = sizeof (mar_res_header_t),
  78. .response_id = MESSAGE_RES_CONFDB_OBJECT_CREATE,
  79. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  80. },
  81. { /* 1 */
  82. .lib_handler_fn = message_handler_req_lib_confdb_object_destroy,
  83. .response_size = sizeof (mar_res_header_t),
  84. .response_id = MESSAGE_RES_CONFDB_OBJECT_DESTROY,
  85. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  86. },
  87. { /* 2 */
  88. .lib_handler_fn = message_handler_req_lib_confdb_object_find,
  89. .response_size = sizeof (struct res_lib_confdb_object_find),
  90. .response_id = MESSAGE_RES_CONFDB_OBJECT_FIND,
  91. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  92. },
  93. { /* 3 */
  94. .lib_handler_fn = message_handler_req_lib_confdb_key_create,
  95. .response_size = sizeof (mar_res_header_t),
  96. .response_id = MESSAGE_RES_CONFDB_KEY_CREATE,
  97. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  98. },
  99. { /* 4 */
  100. .lib_handler_fn = message_handler_req_lib_confdb_key_get,
  101. .response_size = sizeof (struct res_lib_confdb_key_get),
  102. .response_id = MESSAGE_RES_CONFDB_KEY_GET,
  103. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  104. },
  105. { /* 5 */
  106. .lib_handler_fn = message_handler_req_lib_confdb_key_replace,
  107. .response_size = sizeof (mar_res_header_t),
  108. .response_id = MESSAGE_RES_CONFDB_KEY_REPLACE,
  109. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  110. },
  111. { /* 6 */
  112. .lib_handler_fn = message_handler_req_lib_confdb_key_delete,
  113. .response_size = sizeof (mar_res_header_t),
  114. .response_id = MESSAGE_RES_CONFDB_KEY_DELETE,
  115. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  116. },
  117. { /* 7 */
  118. .lib_handler_fn = message_handler_req_lib_confdb_object_iter,
  119. .response_size = sizeof (struct res_lib_confdb_object_iter),
  120. .response_id = MESSAGE_RES_CONFDB_OBJECT_ITER,
  121. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  122. },
  123. { /* 8 */
  124. .lib_handler_fn = message_handler_req_lib_confdb_object_parent_get,
  125. .response_size = sizeof (struct res_lib_confdb_object_parent_get),
  126. .response_id = MESSAGE_RES_CONFDB_OBJECT_PARENT_GET,
  127. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  128. },
  129. { /* 9 */
  130. .lib_handler_fn = message_handler_req_lib_confdb_key_iter,
  131. .response_size = sizeof (struct res_lib_confdb_key_iter),
  132. .response_id = MESSAGE_RES_CONFDB_KEY_ITER,
  133. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  134. },
  135. { /* 10 */
  136. .lib_handler_fn = message_handler_req_lib_confdb_track_start,
  137. .response_size = sizeof (mar_res_header_t),
  138. .response_id = MESSAGE_RES_CONFDB_TRACK_START,
  139. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  140. },
  141. { /* 11 */
  142. .lib_handler_fn = message_handler_req_lib_confdb_track_stop,
  143. .response_size = sizeof (mar_res_header_t),
  144. .response_id = MESSAGE_RES_CONFDB_TRACK_START,
  145. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  146. },
  147. { /* 12 */
  148. .lib_handler_fn = message_handler_req_lib_confdb_write,
  149. .response_size = sizeof (struct res_lib_confdb_write),
  150. .response_id = MESSAGE_RES_CONFDB_WRITE,
  151. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  152. },
  153. };
  154. struct openais_service_handler confdb_service_handler = {
  155. .name = "openais cluster config database access v1.01",
  156. .id = CONFDB_SERVICE,
  157. .private_data_size = 0,
  158. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED,
  159. .lib_init_fn = confdb_lib_init_fn,
  160. .lib_exit_fn = confdb_lib_exit_fn,
  161. .lib_service = confdb_lib_service,
  162. .lib_service_count = sizeof (confdb_lib_service) / sizeof (struct openais_lib_handler),
  163. .exec_init_fn = confdb_exec_init_fn,
  164. };
  165. /*
  166. * Dynamic loader definition
  167. */
  168. static struct openais_service_handler *confdb_get_service_handler_ver0 (void);
  169. static struct openais_service_handler_iface_ver0 confdb_service_handler_iface = {
  170. .openais_get_service_handler_ver0 = confdb_get_service_handler_ver0
  171. };
  172. static struct lcr_iface openais_confdb_ver0[1] = {
  173. {
  174. .name = "openais_confdb",
  175. .version = 0,
  176. .versions_replace = 0,
  177. .versions_replace_count = 0,
  178. .dependencies = 0,
  179. .dependency_count = 0,
  180. .constructor = NULL,
  181. .destructor = NULL,
  182. .interfaces = NULL
  183. }
  184. };
  185. static struct lcr_comp confdb_comp_ver0 = {
  186. .iface_count = 1,
  187. .ifaces = openais_confdb_ver0
  188. };
  189. static struct openais_service_handler *confdb_get_service_handler_ver0 (void)
  190. {
  191. return (&confdb_service_handler);
  192. }
  193. __attribute__ ((constructor)) static void confdb_comp_register (void) {
  194. lcr_interfaces_set (&openais_confdb_ver0[0], &confdb_service_handler_iface);
  195. lcr_component_register (&confdb_comp_ver0);
  196. }
  197. static int confdb_exec_init_fn (struct objdb_iface_ver0 *objdb)
  198. {
  199. global_objdb = objdb;
  200. return 0;
  201. }
  202. static int confdb_lib_init_fn (void *conn)
  203. {
  204. log_printf(LOG_LEVEL_DEBUG, "lib_init_fn: conn=%p\n", conn);
  205. return (0);
  206. }
  207. static int confdb_lib_exit_fn (void *conn)
  208. {
  209. log_printf(LOG_LEVEL_DEBUG, "exit_fn for conn=%p\n", conn);
  210. return (0);
  211. }
  212. static void message_handler_req_lib_confdb_object_create (void *conn, void *message)
  213. {
  214. struct req_lib_confdb_object_create *req_lib_confdb_object_create = (struct req_lib_confdb_object_create *)message;
  215. struct res_lib_confdb_object_create res_lib_confdb_object_create;
  216. unsigned int object_handle;
  217. int ret = SA_AIS_OK;
  218. if (global_objdb->object_create(req_lib_confdb_object_create->parent_object_handle,
  219. &object_handle,
  220. req_lib_confdb_object_create->object_name.value,
  221. req_lib_confdb_object_create->object_name.length))
  222. ret = SA_AIS_ERR_ACCESS;
  223. res_lib_confdb_object_create.object_handle = object_handle;
  224. res_lib_confdb_object_create.header.size = sizeof(res_lib_confdb_object_create);
  225. res_lib_confdb_object_create.header.id = MESSAGE_RES_CONFDB_OBJECT_CREATE;
  226. res_lib_confdb_object_create.header.error = ret;
  227. openais_conn_send_response(conn, &res_lib_confdb_object_create, sizeof(res_lib_confdb_object_create));
  228. }
  229. static void message_handler_req_lib_confdb_object_destroy (void *conn, void *message)
  230. {
  231. struct req_lib_confdb_object_destroy *req_lib_confdb_object_destroy = (struct req_lib_confdb_object_destroy *)message;
  232. mar_res_header_t res;
  233. int ret = SA_AIS_OK;
  234. if (global_objdb->object_destroy(req_lib_confdb_object_destroy->object_handle))
  235. ret = SA_AIS_ERR_ACCESS;
  236. res.size = sizeof(res);
  237. res.id = MESSAGE_RES_CONFDB_OBJECT_CREATE;
  238. res.error = ret;
  239. openais_conn_send_response(conn, &res, sizeof(res));
  240. }
  241. static void message_handler_req_lib_confdb_key_create (void *conn, void *message)
  242. {
  243. struct req_lib_confdb_key_create *req_lib_confdb_key_create = (struct req_lib_confdb_key_create *)message;
  244. mar_res_header_t res;
  245. int ret = SA_AIS_OK;
  246. if (global_objdb->object_key_create(req_lib_confdb_key_create->object_handle,
  247. req_lib_confdb_key_create->key_name.value,
  248. req_lib_confdb_key_create->key_name.length,
  249. req_lib_confdb_key_create->value.value,
  250. req_lib_confdb_key_create->value.length))
  251. ret = SA_AIS_ERR_ACCESS;
  252. res.size = sizeof(res);
  253. res.id = MESSAGE_RES_CONFDB_KEY_CREATE;
  254. res.error = ret;
  255. openais_conn_send_response(conn, &res, sizeof(res));
  256. }
  257. static void message_handler_req_lib_confdb_key_get (void *conn, void *message)
  258. {
  259. struct req_lib_confdb_key_get *req_lib_confdb_key_get = (struct req_lib_confdb_key_get *)message;
  260. struct res_lib_confdb_key_get res_lib_confdb_key_get;
  261. int value_len;
  262. void *value;
  263. int ret = SA_AIS_OK;
  264. if (global_objdb->object_key_get(req_lib_confdb_key_get->parent_object_handle,
  265. req_lib_confdb_key_get->key_name.value,
  266. req_lib_confdb_key_get->key_name.length,
  267. &value,
  268. &value_len))
  269. ret = SA_AIS_ERR_ACCESS;
  270. else {
  271. memcpy(res_lib_confdb_key_get.value.value, value, value_len);
  272. res_lib_confdb_key_get.value.length = value_len;
  273. }
  274. res_lib_confdb_key_get.header.size = sizeof(res_lib_confdb_key_get);
  275. res_lib_confdb_key_get.header.id = MESSAGE_RES_CONFDB_KEY_GET;
  276. res_lib_confdb_key_get.header.error = ret;
  277. openais_conn_send_response(conn, &res_lib_confdb_key_get, sizeof(res_lib_confdb_key_get));
  278. }
  279. static void message_handler_req_lib_confdb_key_replace (void *conn, void *message)
  280. {
  281. struct req_lib_confdb_key_replace *req_lib_confdb_key_replace = (struct req_lib_confdb_key_replace *)message;
  282. mar_res_header_t res;
  283. int ret = SA_AIS_OK;
  284. if (global_objdb->object_key_replace(req_lib_confdb_key_replace->object_handle,
  285. req_lib_confdb_key_replace->key_name.value,
  286. req_lib_confdb_key_replace->key_name.length,
  287. req_lib_confdb_key_replace->old_value.value,
  288. req_lib_confdb_key_replace->old_value.length,
  289. req_lib_confdb_key_replace->new_value.value,
  290. req_lib_confdb_key_replace->new_value.length))
  291. ret = SA_AIS_ERR_ACCESS;
  292. res.size = sizeof(res);
  293. res.id = MESSAGE_RES_CONFDB_KEY_REPLACE;
  294. res.error = ret;
  295. openais_conn_send_response(conn, &res, sizeof(res));
  296. }
  297. static void message_handler_req_lib_confdb_key_delete (void *conn, void *message)
  298. {
  299. struct req_lib_confdb_key_delete *req_lib_confdb_key_delete = (struct req_lib_confdb_key_delete *)message;
  300. mar_res_header_t res;
  301. int ret = SA_AIS_OK;
  302. if (global_objdb->object_key_delete(req_lib_confdb_key_delete->object_handle,
  303. req_lib_confdb_key_delete->key_name.value,
  304. req_lib_confdb_key_delete->key_name.length,
  305. req_lib_confdb_key_delete->value.value,
  306. req_lib_confdb_key_delete->value.length))
  307. ret = SA_AIS_ERR_ACCESS;
  308. res.size = sizeof(res);
  309. res.id = MESSAGE_RES_CONFDB_KEY_DELETE;
  310. res.error = ret;
  311. openais_conn_send_response(conn, &res, sizeof(res));
  312. }
  313. static void message_handler_req_lib_confdb_object_parent_get (void *conn, void *message)
  314. {
  315. struct req_lib_confdb_object_parent_get *req_lib_confdb_object_parent_get = (struct req_lib_confdb_object_parent_get *)message;
  316. struct res_lib_confdb_object_parent_get res_lib_confdb_object_parent_get;
  317. unsigned int object_handle;
  318. int ret = SA_AIS_OK;
  319. if (global_objdb->object_parent_get(req_lib_confdb_object_parent_get->object_handle,
  320. &object_handle))
  321. ret = SA_AIS_ERR_ACCESS;
  322. res_lib_confdb_object_parent_get.parent_object_handle = object_handle;
  323. res_lib_confdb_object_parent_get.header.size = sizeof(res_lib_confdb_object_parent_get);
  324. res_lib_confdb_object_parent_get.header.id = MESSAGE_RES_CONFDB_OBJECT_CREATE;
  325. res_lib_confdb_object_parent_get.header.error = ret;
  326. openais_conn_send_response(conn, &res_lib_confdb_object_parent_get, sizeof(res_lib_confdb_object_parent_get));
  327. }
  328. static void message_handler_req_lib_confdb_key_iter (void *conn, void *message)
  329. {
  330. struct req_lib_confdb_key_iter *req_lib_confdb_key_iter = (struct req_lib_confdb_key_iter *)message;
  331. struct res_lib_confdb_key_iter res_lib_confdb_key_iter;
  332. void *key_name;
  333. int key_name_len;
  334. void *value;
  335. int value_len;
  336. int ret = SA_AIS_OK;
  337. if (global_objdb->object_key_iter_from(req_lib_confdb_key_iter->parent_object_handle,
  338. req_lib_confdb_key_iter->next_entry,
  339. &key_name,
  340. &key_name_len,
  341. &value,
  342. &value_len))
  343. ret = SA_AIS_ERR_ACCESS;
  344. else {
  345. memcpy(res_lib_confdb_key_iter.key_name.value, key_name, key_name_len);
  346. memcpy(res_lib_confdb_key_iter.value.value, value, value_len);
  347. res_lib_confdb_key_iter.key_name.length = key_name_len;
  348. res_lib_confdb_key_iter.value.length = value_len;
  349. }
  350. res_lib_confdb_key_iter.header.size = sizeof(res_lib_confdb_key_iter);
  351. res_lib_confdb_key_iter.header.id = MESSAGE_RES_CONFDB_KEY_ITER;
  352. res_lib_confdb_key_iter.header.error = ret;
  353. openais_conn_send_response(conn, &res_lib_confdb_key_iter, sizeof(res_lib_confdb_key_iter));
  354. }
  355. static void message_handler_req_lib_confdb_object_iter (void *conn, void *message)
  356. {
  357. struct req_lib_confdb_object_iter *req_lib_confdb_object_iter = (struct req_lib_confdb_object_iter *)message;
  358. struct res_lib_confdb_object_iter res_lib_confdb_object_iter;
  359. void *object_name;
  360. int object_name_len;
  361. int ret = SA_AIS_OK;
  362. if (global_objdb->object_iter_from(req_lib_confdb_object_iter->parent_object_handle,
  363. req_lib_confdb_object_iter->next_entry,
  364. &object_name,
  365. &object_name_len,
  366. &res_lib_confdb_object_iter.object_handle))
  367. ret = SA_AIS_ERR_ACCESS;
  368. else {
  369. res_lib_confdb_object_iter.object_name.length = object_name_len;
  370. memcpy(res_lib_confdb_object_iter.object_name.value, object_name, object_name_len);
  371. }
  372. res_lib_confdb_object_iter.header.size = sizeof(res_lib_confdb_object_iter);
  373. res_lib_confdb_object_iter.header.id = MESSAGE_RES_CONFDB_OBJECT_ITER;
  374. res_lib_confdb_object_iter.header.error = ret;
  375. openais_conn_send_response(conn, &res_lib_confdb_object_iter, sizeof(res_lib_confdb_object_iter));
  376. }
  377. static void message_handler_req_lib_confdb_object_find (void *conn, void *message)
  378. {
  379. struct req_lib_confdb_object_find *req_lib_confdb_object_find = (struct req_lib_confdb_object_find *)message;
  380. struct res_lib_confdb_object_find res_lib_confdb_object_find;
  381. int ret = SA_AIS_OK;
  382. if (global_objdb->object_find_from(req_lib_confdb_object_find->parent_object_handle,
  383. req_lib_confdb_object_find->next_entry,
  384. req_lib_confdb_object_find->object_name.value,
  385. req_lib_confdb_object_find->object_name.length,
  386. &res_lib_confdb_object_find.object_handle,
  387. &res_lib_confdb_object_find.next_entry))
  388. ret = SA_AIS_ERR_ACCESS;
  389. res_lib_confdb_object_find.header.size = sizeof(res_lib_confdb_object_find);
  390. res_lib_confdb_object_find.header.id = MESSAGE_RES_CONFDB_OBJECT_FIND;
  391. res_lib_confdb_object_find.header.error = ret;
  392. openais_conn_send_response(conn, &res_lib_confdb_object_find, sizeof(res_lib_confdb_object_find));
  393. }
  394. static void message_handler_req_lib_confdb_write (void *conn, void *message)
  395. {
  396. struct res_lib_confdb_write res_lib_confdb_write;
  397. int ret = SA_AIS_OK;
  398. char *error_string = NULL;
  399. if (global_objdb->object_write_config(&error_string))
  400. ret = SA_AIS_ERR_ACCESS;
  401. res_lib_confdb_write.header.size = sizeof(res_lib_confdb_write);
  402. res_lib_confdb_write.header.id = MESSAGE_RES_CONFDB_WRITE;
  403. res_lib_confdb_write.header.error = ret;
  404. if (error_string) {
  405. strcpy((char *)res_lib_confdb_write.error.value, error_string);
  406. res_lib_confdb_write.error.length = strlen(error_string) + 1;
  407. } else
  408. res_lib_confdb_write.error.length = 0;
  409. openais_conn_send_response(conn, &res_lib_confdb_write, sizeof(res_lib_confdb_write));
  410. }
  411. /* TODO: when we have notification in the objdb. */
  412. static void message_handler_req_lib_confdb_track_start (void *conn, void *message)
  413. {
  414. mar_res_header_t res;
  415. res.size = sizeof(res);
  416. res.id = MESSAGE_RES_CONFDB_TRACK_START;
  417. res.error = SA_AIS_ERR_NOT_SUPPORTED;
  418. openais_conn_send_response(conn, &res, sizeof(res));
  419. }
  420. static void message_handler_req_lib_confdb_track_stop (void *conn, void *message)
  421. {
  422. mar_res_header_t res;
  423. res.size = sizeof(res);
  424. res.id = MESSAGE_RES_CONFDB_TRACK_STOP;
  425. res.error = SA_AIS_ERR_NOT_SUPPORTED;
  426. openais_conn_send_response(conn, &res, sizeof(res));
  427. }