/** *Do initialization here * *This function is called by the my_init *function in uolsrd_plugin.c */ int olsrd_plugin_init(void) { /* Initial IPC value */ ipc_socket = -1; plugin_ipc_init(); return 1; }
/** *Do initialization here * *This function is called by the my_init *function in uolsrd_plugin.c */ #ifdef _WRS_KERNEL int olsrd_dotdraw_init(void) #else /* _WRS_KERNEL */ int olsrd_plugin_init(void) #endif /* _WRS_KERNEL */ { /* Initial IPC */ plugin_ipc_init(); /* Register the "ProcessChanges" function */ register_pcf(&pcf_event); return 1; }
/** *Do initialization here * *This function is called by the my_init *function in uolsrd_plugin.c */ int olsrd_plugin_init(void) { /* Initial IPC value */ ipc_socket = -1; /* Get start time */ gettimeofday(&start_time, NULL); plugin_ipc_init(); return 1; }
/** *Do initialization here * *This function is called by the my_init *function in uolsrd_plugin.c */ int olsrd_plugin_init(void) { /* Initial IPC value */ ipc_socket = -1; /* Get start time */ gettimeofday(&start_time, NULL); if (!strlen(uuidfile)) strscpy(uuidfile, "uuid.txt", sizeof(uuidfile)); read_uuid_from_file(uuidfile); plugin_ipc_init(); return 1; }