123456789101112131415161718192021222324252627282930 |
- #ifndef AFUN__OBJECT_H_PUBLIC
- #define AFUN__OBJECT_H_PUBLIC
- #include "tool.h"
- typedef struct af_Object af_Object;
- typedef struct af_Inherit af_Inherit;
- /* 对象API函数 DLC */
- DEFINE_DLC_SYMBOL(pValueAPI, pAPIFUNC);
- #include "env.h"
- #include "tool.h"
- /* 对象创建与释放函数 */
- af_Object *makeObject(char *id, size_t data_size, bool inherit_api, bool allow_inherit, af_Object *belong,
- af_Inherit *inherit, af_Environment *env);
- void freeObject(af_Object *obj);
- /* 对象属性获取函数 */
- af_Object *getBelongObject(af_Object *object, af_Environment *env);
- /* 对象继承关系函数 */
- af_Inherit *makeInherit(af_Object *obj);
- af_Inherit *freeInherit(af_Inherit *ih);
- void freeAllInherit(af_Inherit *ih);
- /* 对象API函数 */
- void *findObjectAPI(char *api_name, af_Object *obj);
- int addAPIToObject(DLC_SYMBOL(pAPIFUNC) func, char *api_name, af_Object *obj);
- #endif //AFUN__OBJECT_H_PUBLIC
|