Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../bin/.././include/picltree.h
Real path: /usr/include/picltree.h
Zurück
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. */ #ifndef _PICLTREE_H #define _PICLTREE_H #ifdef __cplusplus extern "C" { #endif /* * PTree Interface */ #include <ucred.h> /* * Plug-in directories */ #define PICLD_COMMON_PLUGIN_DIR "/usr/lib/picl/plugins" #define PICLD_PLAT_PLUGIN_DIRF "/usr/platform/%s/lib/picl/plugins/" typedef struct { picl_nodehdl_t nodeh; picl_prophdl_t proph; ucred_t *uc; } ptree_rarg_t; typedef struct { picl_nodehdl_t nodeh; picl_prophdl_t proph; ucred_t *uc; } ptree_warg_t; /* * Volatile type properties must specify their maximum size in 'size' * of propinfo_t at the time of creation. That guarantees clients * accessing those properties an upper limit on value size. * The two property types that have to specify a maximum are: * PICL_PTYPE_BYTEARRAY, and PICL_PTYPE_CHARSTRING */ #define PTREE_PROPINFO_VERSION_1 1 #define PTREE_PROPINFO_VERSION PTREE_PROPINFO_VERSION_1 typedef struct { int version; picl_propinfo_t piclinfo; /* client info */ int (*read)(ptree_rarg_t *arg, void *__buf); int (*write)(ptree_warg_t *arg, const void *__buf); } ptree_propinfo_t; /* * -------------------------------------------------- * Function prototypes of PTree Interface primitives * -------------------------------------------------- */ /* * create/destroy/add/delete a node/property instance */ extern int ptree_get_root(picl_nodehdl_t *__nodeh); extern int ptree_create_node(const char *__name, const char *__clname, picl_nodehdl_t *__nodeh); extern int ptree_destroy_node(picl_nodehdl_t __nodeh); extern int ptree_add_node(picl_nodehdl_t __parh, picl_nodehdl_t __chdh); extern int ptree_delete_node(picl_nodehdl_t __nodeh); extern int ptree_create_prop(const ptree_propinfo_t *__pi, const void *__vbuf, picl_prophdl_t *__proph); extern int ptree_destroy_prop(picl_prophdl_t __proph); extern int ptree_delete_prop(picl_prophdl_t __proph); extern int ptree_add_prop(picl_nodehdl_t __nodeh, picl_prophdl_t __proph); extern int ptree_create_table(picl_prophdl_t *__tbl_hdl); extern int ptree_add_row_to_table(picl_prophdl_t __tbl, int __nprops, const picl_prophdl_t *__props); extern int ptree_update_propval_by_name(picl_nodehdl_t __nodeh, const char *__name, const void *__vbuf, size_t __sz); extern int ptree_update_propval(picl_prophdl_t __proph, const void *__buf, size_t __sz); extern int ptree_get_propval(picl_prophdl_t __proph, void *__buf, size_t __sz); extern int ptree_get_propval_by_name(picl_nodehdl_t __nodeh, const char *__name, void *__buf, size_t __sz); extern int ptree_get_propinfo(picl_prophdl_t __proph, ptree_propinfo_t *__pi); extern int ptree_get_first_prop(picl_nodehdl_t __nodeh, picl_prophdl_t *__proph); extern int ptree_get_next_prop(picl_prophdl_t __thish, picl_prophdl_t *__proph); extern int ptree_get_prop_by_name(picl_nodehdl_t __nodeh, const char *__name, picl_prophdl_t *__proph); extern int ptree_get_next_by_row(picl_prophdl_t __proph, picl_prophdl_t *__rowh); extern int ptree_get_next_by_col(picl_prophdl_t __proph, picl_prophdl_t *__colh); extern int ptree_init_propinfo(ptree_propinfo_t *__infop, int __version, int __ptype, int __pmode, size_t __psize, char *__pname, int (*__readfn)(ptree_rarg_t *, void *), int (*__writefn)(ptree_warg_t *, const void *)); extern int ptree_create_and_add_prop(picl_nodehdl_t __nodeh, ptree_propinfo_t *__infop, void *__vbuf, picl_prophdl_t *__proph); extern int ptree_create_and_add_node(picl_nodehdl_t __rooth, const char *__name, const char *__classname, picl_nodehdl_t *__nodeh); extern int ptree_get_node_by_path(const char *__piclurl, picl_nodehdl_t *__handle); extern int ptree_walk_tree_by_class(picl_nodehdl_t __rooth, const char *__classname, void *__c_args, int (*__callback_fn)(picl_nodehdl_t __hdl, void *__args)); extern int ptree_find_node(picl_nodehdl_t __rooth, char *__pname, picl_prop_type_t __ptype, void *__pval, size_t __valsize, picl_nodehdl_t *__retnodeh); extern int ptree_post_event(const char *__ename, const void *__earg, size_t __size, void (*__completion_handler)(char *__ename, void *__earg, size_t __size)); extern int ptree_register_handler(const char *__ename, void (*__evt_handler)(const char *__ename, const void *__earg, size_t __size, void *__cookie), void *__cookie); extern void ptree_unregister_handler(const char *__ename, void (*__evt_handler)(const char *__ename, const void *__earg, size_t __size, void *__cookie), void *__cookie); extern int ptree_get_frutree_parent(picl_nodehdl_t __nodeh, picl_nodehdl_t *__retnodeh); /* * PICL plug-in revision */ #define PICLD_PLUGIN_VERSION_1 1 #define PICLD_PLUGIN_VERSION_2 2 #define PICLD_PLUGIN_VERSION PICLD_PLUGIN_VERSION_1 #define PICLD_PLUGIN_NON_CRITICAL 0 #define PICLD_PLUGIN_CRITICAL 1 /* * PICL plug-in registration interface */ typedef struct { int version; int critical; char *name; void (*plugin_init)(void); void (*plugin_fini)(void); } picld_plugin_reg_t; extern int picld_plugin_register(picld_plugin_reg_t *__regp); #ifdef __cplusplus } #endif #endif /* _PICLTREE_H */