static status_t std_ops(int32 op, ...) { switch(op) { case B_MODULE_INIT: dprintf(MODULE_NAME ": B_MODULE_INIT\n"); return init_module(); case B_MODULE_UNINIT: dprintf(MODULE_NAME ": B_MODULE_UNINIT\n"); uninit_module(); return B_OK; default: return B_ERROR; } }
static status_t std_ops(int32 op, ...) { switch (op) { case B_MODULE_INIT: return init_module(); case B_MODULE_UNINIT: { uninit_module(); return B_OK; } default: return B_ERROR; } }