2014-10-19 23:51:49 +08:00
|
|
|
#ifndef __COMM_H
|
|
|
|
#define __COMM_H
|
|
|
|
|
|
|
|
enum {
|
|
|
|
KERNEL_RUN_FINISHED,
|
|
|
|
KERNEL_RUN_EXCEPTION,
|
|
|
|
KERNEL_RUN_STARTUP_FAILED
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef int (*object_loader)(void *, int);
|
|
|
|
typedef int (*kernel_runner)(const char *, int *);
|
|
|
|
|
|
|
|
void comm_serve(object_loader load_object, kernel_runner run_kernel);
|
2014-12-19 12:46:24 +08:00
|
|
|
int comm_rpc(int rpc_num, ...);
|
2014-10-19 23:51:49 +08:00
|
|
|
void comm_log(const char *fmt, ...);
|
|
|
|
|
|
|
|
#endif /* __COMM_H */
|