object.h 805 B

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