Skip to content

Commit

Permalink
Send initial CVR command.
Browse files Browse the repository at this point in the history
Also the relevant helper functions.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information
felipec committed Oct 11, 2008
1 parent c0ddb39 commit 2d68039
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pecan_ns.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ static void
ver_cb (GObject *obj,
PecanCommand *command)
{
PecanNs *ns;
ns = PECAN_NS (obj);
pecan_cmd_node_send (PECAN_CMD_NODE (ns), NULL,
"CVR", "0x0409 winnt 5.1 i386 MSNMSGR 6.0.0602 MSMSGS %s",
pecan_session_get_username (ns->priv->session));
}

void
Expand Down
6 changes: 6 additions & 0 deletions pecan_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ pecan_session_disconnect (PecanSession *session)
pecan_node_close (PECAN_NODE (session->priv->ns));
}

const gchar *
pecan_session_get_username (PecanSession *session)
{
return session->priv->username;
}

/* GObject stuff. */

static void
Expand Down
1 change: 1 addition & 0 deletions pecan_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ PecanSession *pecan_session_new (const gchar *username, const gchar *password);
void pecan_session_free (PecanSession *session);
void pecan_session_connect (PecanSession *session, const gchar *host, gint port);
void pecan_session_disconnect (PecanSession *session);
const gchar *pecan_session_get_username (PecanSession *session);

GType pecan_session_get_type (void);

Expand Down

0 comments on commit 2d68039

Please sign in to comment.