| RoadRunner Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
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); |
typedef enum {
RR_MANAGER_NORMAL,
RR_MANAGER_STARTING,
RR_MANAGER_CLOSING
} RRManagerState; |
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.
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.
gboolean rr_manager_close_channel (RRManager *manager,
RRChannel *channel,
gint code,
const gchar *xml_lang,
const gchar *diagnostic,
GError **error); |
| manager : | A RRManager |
| channel : | The channel/profile to close |
| code : | a three-digit reply code meaningful to programs |
| xml_lang : | |
| diagnostic : | A textual message that is meaningful to implementers but not programs. |
| error : | location to return an error of type RR_ERROR or RR_BEEP_ERROR |
| Returns : | TRUE on success, FALSE on failure. |
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); |
Blocks until a greeting message is received.
gboolean rr_manager_wait_for_greeting_sent
(RRManager *manager,
GError **error); |
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.
void rr_manager_set_expects_greeting (RRManager *manager,
gboolean state); |
Selects if the manager is expecting an incoming greeting.