summaryrefslogtreecommitdiff
path: root/pn_ns.h
blob: be93a074757ac5ae2abc02578c600363796b1bb9 (plain)
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
#ifndef PN_NS_H
#define PN_NS_H

#include <glib-object.h>

#include "pn_cmd_node.h"

struct pn_ns {
	struct pn_cmd_node parent;

	struct pn_ns_priv *priv;
};

struct pn_ns_class {
	struct pn_cmd_node_class parent_class;
};

#define PN_NS_TYPE (pn_ns_get_type())
#define PN_NS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PN_NS_TYPE, struct pn_ns))
#define PN_NS_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), PN_NS_TYPE, struct pn_ns_class))
#define PN_NS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PN_NS_TYPE, struct pn_ns_class))

struct pn_session;

struct pn_ns *pn_ns_new(struct pn_session *session);
void pn_ns_free(struct pn_ns *ns);

GType pn_ns_get_type(void);

#endif /* PN_NS_H */