#ifndef PN_SESSION_H #define PN_SESSION_H #include struct pn_session { GObject parent; struct pn_session_priv *priv; }; struct pn_session_class { GObjectClass parent_class; }; #define PN_SESSION_TYPE (pn_session_get_type()) #define PN_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PN_SESSION_TYPE, struct pn_session)) #define PN_SESSION_CLASS(c) (G_TYPE_CHECK_CLASS_CAST((c), PN_SESSION_TYPE, struct pn_session_class)) #define PN_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PN_SESSION_TYPE, struct pn_session_class)) struct pn_session *pn_session_new(const char *username, const char *password); void pn_session_free(struct pn_session *session); void pn_session_connect(struct pn_session *session, const char *host, int port); void pn_session_disconnect(struct pn_session *session); const char *pn_session_get_username(struct pn_session *session); GType pn_session_get_type(void); #endif /* PN_SESSION_H */