object.h 752 B

12345678910111213141516171819202122
  1. #ifndef AFUN__OBJECT_H_PUBLIC
  2. #define AFUN__OBJECT_H_PUBLIC
  3. typedef struct af_Object af_Object;
  4. typedef struct af_Inherit af_Inherit;
  5. #include "env.h"
  6. #include "tool.h"
  7. af_Object *makeObject(char *id, size_t data_size, bool inherit_api, bool allow_iherit, af_Object *belong,
  8. af_Inherit *iherit, af_Environment *env);
  9. void freeObject(af_Object *obj);
  10. af_Object *getBelongObject(af_Object *object, af_Environment *env);
  11. af_Inherit *makeIherit(af_Object *obj);
  12. af_Inherit *freeIherit(af_Inherit *ih);
  13. void freeAllIherit(af_Inherit *ih);
  14. void *findObjectAPI(char *api_name, af_Object *obj);
  15. int addAPIToObject(DlcHandle *dlc, char *func_name, char *api_name,
  16. af_Object *obj);
  17. #endif //AFUN__OBJECT_H_PUBLIC