diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-16 21:00:43 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-16 21:00:43 +0900 |
commit | 88c80d0a587b534ebea25022f0df578123d53a3b (patch) | |
tree | 06d5dde002e68d348c0eedf398fc1f88715ed18a /util_liveinfo/include | |
parent | e5e3eb94d3bd0736a12b96b0f55f654a4c1502b2 (diff) | |
download | data-provider-master-88c80d0a587b534ebea25022f0df578123d53a3b.tar.gz data-provider-master-88c80d0a587b534ebea25022f0df578123d53a3b.tar.bz2 data-provider-master-88c80d0a587b534ebea25022f0df578123d53a3b.zip |
sync with master
Diffstat (limited to 'util_liveinfo/include')
-rw-r--r-- | util_liveinfo/include/liveinfo.h | 16 | ||||
-rw-r--r-- | util_liveinfo/include/node.h | 41 |
2 files changed, 57 insertions, 0 deletions
diff --git a/util_liveinfo/include/liveinfo.h b/util_liveinfo/include/liveinfo.h new file mode 100644 index 0000000..62077ae --- /dev/null +++ b/util_liveinfo/include/liveinfo.h @@ -0,0 +1,16 @@ +/* + * Copyright 2012 Samsung Electronics Co., Ltd + * + * Licensed under the Flora License, Version 1.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.tizenopensource.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + diff --git a/util_liveinfo/include/node.h b/util_liveinfo/include/node.h new file mode 100644 index 0000000..812b59e --- /dev/null +++ b/util_liveinfo/include/node.h @@ -0,0 +1,41 @@ + +enum node_type { + NODE_DIR, + NODE_FILE, + NODE_LINK, +}; + +struct node; + +#define NODE_READ 0x01 +#define NODE_WRITE 0x02 +#define NODE_EXEC 0x04 + +extern struct node *node_find(const struct node *node, const char *path); +extern struct node *node_create(struct node *parent, const char *name, enum node_type type); +extern void *node_destroy(struct node *node); + +extern struct node * const node_next_sibling(const struct node *node); +extern struct node * const node_prev_sibling(const struct node *node); + +extern struct node * const node_child(const struct node *node); +extern struct node * const node_parent(const struct node *node); + +extern void node_set_mode(struct node *node, int mode); +extern void node_set_data(struct node *node, void *data); + +extern const int const node_mode(const struct node *node); +extern void * const node_data(const struct node *node); + +extern void node_set_type(struct node *node, enum node_type type); +extern const enum node_type const node_type(const struct node *node); + +extern const char * const node_name(const struct node *node); + +extern char *node_to_abspath(const struct node *node); + +extern int node_age(struct node *node); +extern void node_set_age(struct node *node, int age); + +extern void node_delete(struct node *node, void (del_cb)(struct node *node)); +/* End of a file */ |