MCPcopy Create free account
hub / github.com/corosync/corosync / pload_exec_init_fn

Function pload_exec_init_fn

exec/pload.c:269–287  ·  view source on GitHub ↗

* exec functions */

Source from the content-addressed store, hash-verified

267 * exec functions
268 */
269static char *pload_exec_init_fn (struct corosync_api_v1 *corosync_api)
270{
271 icmap_track_t pload_track = NULL;
272
273 api = corosync_api;
274
275 /*
276 * track changes to pload config and start only on demand
277 */
278 if (icmap_track_add("pload.",
279 ICMAP_TRACK_ADD | ICMAP_TRACK_DELETE | ICMAP_TRACK_MODIFY | ICMAP_TRACK_PREFIX,
280 pload_read_config,
281 NULL,
282 &pload_track) != CS_OK) {
283 return (char *)"Unable to setup pload config tracking!\n";
284 }
285
286 return NULL;
287}
288
289/*
290 * network messages/onwire handlers

Callers

nothing calls this directly

Calls 1

icmap_track_addFunction · 0.85

Tested by

no test coverage detected