File: source.h

package info (click to toggle)
open-isns 0.101-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,440 kB
  • sloc: ansic: 19,981; sh: 3,211; python: 1,083; perl: 839; makefile: 214
file content (32 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * iSNS source attribute handling
 *
 * Copyright (C) 2007 Olaf Kirch <olaf.kirch@oracle.com>
 */

#ifndef ISNS_SOURCE_H
#define ISNS_SOURCE_H

#include <libisns/attrs.h>

struct isns_source {
	unsigned int		is_users;
	isns_attr_t *		is_attr;
	unsigned int		is_untrusted : 1;

	isns_object_t *		is_node;
	unsigned int		is_node_type;

	isns_object_t *		is_entity;
};

extern int		isns_source_encode(buf_t *, const isns_source_t *);
extern int		isns_source_decode(buf_t *, isns_source_t **);
extern int		isns_source_set_node(isns_source_t *, isns_db_t *);
extern void		isns_source_set_entity(isns_source_t *, isns_object_t *);
extern isns_source_t *	isns_source_dummy(void);

extern char *		isns_build_source_pattern(const char *);
extern int		isns_source_pattern_match(const char *, const char *);

#endif /* ISNS_SOURCE_H */