XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
object.h
浏览该文件的文档.
1
21#ifndef __xwcd_ds_object_h__
22#define __xwcd_ds_object_h__
23
24#include <xwcd/ds/standard.h>
25#include <xwos/lib/object.h>
26#include <xwos/lib/bclst.h>
27
34struct xwds;
35
44};
45
52 /* private */
54 struct xwds * ds;
55};
56
57void xwds_obj_construct(struct xwds_object * obj);
58void xwds_obj_destruct(struct xwds_object * obj);
60xwer_t xwds_obj_probe(struct xwds_object * obj, xwobj_gc_f gcfunc);
63xwer_t xwds_obj_stop(struct xwds_object * obj);
66xwer_t xwds_obj_grab(struct xwds_object * obj);
67xwer_t xwds_obj_put(struct xwds_object * obj);
69xwer_t xwds_obj_add(struct xwds * ds, struct xwds_object * obj);
70xwer_t xwds_obj_del(struct xwds * ds, struct xwds_object * obj);
71
76#endif /* xwcd/ds/object.h */
XWOS通用库:双循环链表
xwer_t xwds_obj_add(struct xwds *ds, struct xwds_object *obj)
Definition object.c:172
xwer_t xwds_obj_probe(struct xwds_object *obj, xwobj_gc_f gcfunc)
Definition object.c:58
xwer_t xwds_obj_put(struct xwds_object *obj)
Definition object.c:152
xwer_t xwds_obj_remove(struct xwds_object *obj)
Definition object.c:64
void xwds_obj_destruct(struct xwds_object *obj)
Definition object.c:38
void xwds_obj_construct(struct xwds_object *obj)
Definition object.c:30
xwer_t xwds_obj_del(struct xwds *ds, struct xwds_object *obj)
Definition object.c:190
xwer_t xwds_obj_start(struct xwds_object *obj)
Definition object.c:82
xwds_object_refcnt_em
设备状态(引用计数)枚举
Definition object.h:39
xwsq_t xwds_obj_get_tik(struct xwds_object *obj)
Definition object.c:45
xwsq_t xwds_obj_get_refcnt(struct xwds_object *obj)
Definition object.c:166
xwer_t xwds_obj_resume(struct xwds_object *obj)
Definition object.c:124
xwer_t xwds_obj_suspend(struct xwds_object *obj)
Definition object.c:110
xwer_t xwds_obj_grab(struct xwds_object *obj)
Definition object.c:138
xwer_t xwds_obj_stop(struct xwds_object *obj)
Definition object.c:96
@ XWDS_OBJ_REF_SHUTDOWN
Definition object.h:41
@ XWDS_OBJ_REF_REMOVE
Definition object.h:40
@ XWDS_OBJ_REF_RUNNING
Definition object.h:43
@ XWDS_OBJ_REF_SUSPEND
Definition object.h:42
signed long xwer_t
Definition type.h:554
unsigned long xwsq_t
Definition type.h:445
xwer_t(* xwobj_gc_f)(struct xwos_object *)
垃圾回收函数指针类型
Definition object.h:42
设备栈对象
Definition object.h:49
struct xwds * ds
Definition object.h:54
struct xwos_object xwobj
Definition object.h:50
struct xwlib_bclst_node node
Definition object.h:53
设备栈
Definition xwds.h:37
双循环链表的节点
Definition bclst.h:27
XWOS对象
Definition object.h:53
玄武设备栈:顶级头文件
XWOS通用库:XWOS的对象