rem: (cmd_function)ul_register_watcher = find_export("~ul_register_watcher", 1); if (ul_register_watcher == 0) { LOG(L_ERR, "Cant find callback\n"); return -1; }  (cmd_function)ul_unregister_watcher = find_export("~ul_unregister_watcher", 1); if (ul_unregister_watcher == 0) { LOG(L_ERR, "Cant find callback\n"); return -1; }
context: static int mod_init(void){	load_tm_f load_tm;	fprintf(stderr, "Presence Agent - initializing\n");             /*              * We will need sl_send_reply from stateless	      * module for sending replies	      */        sl_reply = find_export("sl_send_reply", 2);	if (!sl_reply) {		LOG(L_ERR, "This module requires sl module\n");		return -1;	}	/* import the TM auto-loading function */	if ( !(load_tm=(load_tm_f)find_export("load_tm", NO_SCRIPT))) {		LOG(L_ERR, "Can't import tm\n");		return -1;	}	/* let the auto-loading function load all TM stuff */	if (load_tm( &tmb )==-1)		return -1;		(cmd_function)ul_register_watcher = find_export("~ul_register_watcher", 1);	if (ul_register_watcher == 0) {		LOG(L_ERR, "Cant find callback\n");		return -1;	}	(cmd_function)ul_unregister_watcher = find_export("~ul_unregister_watcher", 1);	if (ul_unregister_watcher == 0) {		LOG(L_ERR, "Cant find callback\n");		return -1;	}	return 0;}