RRManager

Name

RRManager -- 

Synopsis



enum        RRManagerState;
RRManager*  rr_manager_new                  (gint id);
RRProfile*  rr_manager_start                (RRManager *manager,
                                             const gchar *server_name,
                                             GType profile_type,
                                             gpointer config_data,
                                             GError **error);
RRProfile*  rr_manager_start_multi          (RRManager *manager,
                                             const gchar *server_name,
                                             GError **error,
                                             ...);
gboolean    rr_manager_close_channel        (RRManager *manager,
                                             RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);
gboolean    rr_manager_close_channel_nonblock
                                            (RRManager *manager,
                                             RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);
gboolean    rr_manager_wait_for_greeting    (RRManager *manager,
                                             GError **error);
gboolean    rr_manager_wait_for_greeting_sent
                                            (RRManager *manager,
                                             GError **error);
gboolean    rr_manager_send_greeting        (RRManager *manager,
                                             GError **error);
void        rr_manager_set_expects_greeting (RRManager *manager,
                                             gboolean state);
void        rr_manager_set_greeting_sent    (RRManager *manager,
                                             gboolean state);

Description

Details

enum RRManagerState

typedef enum {
	RR_MANAGER_NORMAL,
	RR_MANAGER_STARTING,
	RR_MANAGER_CLOSING
} RRManagerState;


rr_manager_new ()

RRManager*  rr_manager_new                  (gint id);


rr_manager_start ()

RRProfile*  rr_manager_start                (RRManager *manager,
                                             const gchar *server_name,
                                             GType profile_type,
                                             gpointer config_data,
                                             GError **error);

Tries to create a new channel of the provided profile type.


rr_manager_start_multi ()

RRProfile*  rr_manager_start_multi          (RRManager *manager,
                                             const gchar *server_name,
                                             GError **error,
                                             ...);

Tries to create a new channel with one of the provided profiles.


rr_manager_close_channel ()

gboolean    rr_manager_close_channel        (RRManager *manager,
                                             RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);


rr_manager_close_channel_nonblock ()

gboolean    rr_manager_close_channel_nonblock
                                            (RRManager *manager,
                                             RRChannel *channel,
                                             gint code,
                                             const gchar *xml_lang,
                                             const gchar *diagnostic,
                                             GError **error);


rr_manager_wait_for_greeting ()

gboolean    rr_manager_wait_for_greeting    (RRManager *manager,
                                             GError **error);

Blocks until a greeting message is received.


rr_manager_wait_for_greeting_sent ()

gboolean    rr_manager_wait_for_greeting_sent
                                            (RRManager *manager,
                                             GError **error);


rr_manager_send_greeting ()

gboolean    rr_manager_send_greeting        (RRManager *manager,
                                             GError **error);

Resets in_seq and msgno for the manager channel to 0 and sends a new greeting.


rr_manager_set_expects_greeting ()

void        rr_manager_set_expects_greeting (RRManager *manager,
                                             gboolean state);

Selects if the manager is expecting an incoming greeting.


rr_manager_set_greeting_sent ()

void        rr_manager_set_greeting_sent    (RRManager *manager,
                                             gboolean state);

Checks if a greeting has been sent.