/* This is the main message handler for our plugin. All the plugin messages end up here where we either handle it directly or dispatch it to other handlers. */ khm_int32 KHMAPI plugin_msg_proc(khm_int32 msg_type, khm_int32 msg_subtype, khm_ui_4 uparam, void * vparam) { switch(msg_type) { case KMSG_SYSTEM: return handle_kmsg_system(msg_type, msg_subtype, uparam, vparam); case KMSG_CRED: return handle_kmsg_cred(msg_type, msg_subtype, uparam, vparam); } return KHM_ERROR_SUCCESS; }
/* This is the main message handler for our plugin. All the plugin messages end up here where we either handle it directly or dispatch it to other handlers. */ khm_int32 KHMAPI plugin_msg_proc(khm_int32 msg_type, khm_int32 msg_subtype, khm_ui_4 uparam, void * vparam) { switch(msg_type) { case KMSG_SYSTEM: return handle_kmsg_system(msg_type, msg_subtype, uparam, vparam); } if (msg_type == msg_type_afs) { return handle_AFS_MSG(msg_type, msg_subtype, uparam, vparam); } return KHM_ERROR_SUCCESS; }