24 #ifndef SEAP_COMMAND_H
25 #define SEAP_COMMAND_H
29 #include <sexp-types.h>
30 #include <seap-types.h>
38 typedef uint16_t SEAP_cmdcode_t;
39 typedef uint16_t SEAP_cmdid_t;
40 typedef uint8_t SEAP_cmdtype_t;
42 #define SEAP_CMDTYPE_SYNC 1
43 #define SEAP_CMDTYPE_ASYNC 2
45 #define SEAP_CMDREG_LOCAL 0x00000001
46 #define SEAP_CMDREG_USEARG 0x00000002
47 #define SEAP_CMDREG_THREAD 0x00000004
49 int SEAP_cmd_register (
SEAP_CTX_t *ctx, SEAP_cmdcode_t code, uint32_t flags, SEAP_cmdfn_t func, ...);
50 int SEAP_cmd_unregister (
SEAP_CTX_t *ctx, SEAP_cmdcode_t code);
52 #define SEAP_EXEC_LOCAL 0x01
53 #define SEAP_EXEC_LONLY 0x02
54 #define SEAP_EXEC_GFIRST 0x04
55 #define SEAP_EXEC_THREAD 0x08
56 #define SEAP_EXEC_WQUEUE 0x10
57 #define SEAP_EXEC_RECV 0x20
Definition: _seap-types.h:37
Definition: sexp-types.h:82