Crossfire Server, Trunk
ob_methods.h
Go to the documentation of this file.
1 
6 #ifndef OB_METHODS_H
7 #define OB_METHODS_H
8 
14 typedef char method_ret;
15 #define METHOD_OK 0
16 #define METHOD_UNHANDLED 1
17 #define METHOD_ERROR 2
18 #define METHOD_SILENT_ERROR 3
26 /* Example:
27  * typedef method_ret (apply_func)(ob_methods *context, object *ob);
28  */
29 
30 typedef method_ret (*apply_func)(object *, object *, int);
31 typedef method_ret (*process_func)(object *);
32 typedef void (*describe_func)(const object *, const object *, int use_media_tags, char *buf, size_t size);
33 typedef method_ret (*move_on_func)(object *, object *, object *);
34 typedef method_ret (*trigger_func)(object *, object *, int);
35 
43 struct ob_methods {
50  /* Example:
51  * apply_func *apply;
52  */
53 };
54 
55 #endif /* OB_METHODS_H */
trigger_func
method_ret(* trigger_func)(object *, object *, int)
Definition: ob_methods.h:34
ob_methods::move_on
move_on_func move_on
Definition: ob_methods.h:47
process_func
method_ret(* process_func)(object *)
Definition: ob_methods.h:31
buf
StringBuffer * buf
Definition: readable.cpp:1565
ob_methods::fallback
ob_methods * fallback
Definition: ob_methods.h:49
describe_func
void(* describe_func)(const object *, const object *, int use_media_tags, char *buf, size_t size)
Definition: ob_methods.h:32
ob_methods::apply
apply_func apply
Definition: ob_methods.h:44
ob_methods
Definition: ob_methods.h:43
nlohmann::detail::void
j template void())
Definition: json.hpp:4099
move_on_func
method_ret(* move_on_func)(object *, object *, object *)
Definition: ob_methods.h:33
ob_methods::describe
describe_func describe
Definition: ob_methods.h:46
method_ret
char method_ret
Definition: ob_methods.h:14
ob_methods::process
process_func process
Definition: ob_methods.h:45
ob_methods::trigger
trigger_func trigger
Definition: ob_methods.h:48
make_face_from_files.int
int
Definition: make_face_from_files.py:32
apply_func
method_ret(* apply_func)(object *, object *, int)
Definition: ob_methods.h:30