/soc/2015/nakulgulati/main: 9f927dc6d0f1: hangouts: api empty ca...
Nakul at rock.pidgin.im
Nakul at rock.pidgin.im
Tue Aug 4 11:47:29 EDT 2015
Changeset: 9f927dc6d0f1886b0a794b91bce9a30cbe15ef85
Author: Nakul Gulati
Date: 2015-08-02 05:29 +0800
Branch: hangouts
URL: https://hg.pidgin.im/soc/2015/nakulgulati/main/rev/9f927dc6d0f1
Description:
hangouts: api empty callbacks
diffstat:
libpurple/protocols/hangouts/api.c | 62 +++++++++++++++++++++++++------------
1 files changed, 42 insertions(+), 20 deletions(-)
diffs (120 lines):
diff --git a/libpurple/protocols/hangouts/api.c b/libpurple/protocols/hangouts/api.c
--- a/libpurple/protocols/hangouts/api.c
+++ b/libpurple/protocols/hangouts/api.c
@@ -401,13 +401,18 @@ hangouts_api_request (HangoutsApi *api,
purple_http_request (priv->gc, request, info->callback, api);
}
+static void
+hangouts_api_getselfinfo_cb (PurpleHttpConnection *http_conn,
+ PurpleHttpResponse *response, gpointer user_data)
+{
+
+}
+
void
hangouts_api_getselfinfo (HangoutsApi *api)
{
- /*static const HangoutsApiHttpInfo *info =
- {
-
- };*/
+ static const HangoutsApiHttpInfo *info =
+ { hangouts_api_getselfinfo_cb };
gchar *url_endpoint, *header, *body;
@@ -415,16 +420,21 @@ hangouts_api_getselfinfo (HangoutsApi *a
header = hangouts_api_get_request_header (api);
body = g_strdup_printf ("[%s,[], []]", header);
- //hangouts_api_request (api, info, url_endpoint, TRUE, body);
+ hangouts_api_request (api, info, url_endpoint, TRUE, body);
+}
+
+static void
+hangouts_api_syncallevents_cb (PurpleHttpConnection *http_conn,
+ PurpleHttpResponse *response, gpointer user_data)
+{
+
}
void
hangouts_api_syncallevents (HangoutsApi *api)
{
- /* static const HangoutsApiHttpInfo *info =
- {
-
- };*/
+ static const HangoutsApiHttpInfo *info =
+ { hangouts_api_syncallevents_cb };
gchar *url_endpoint, *header, *body;
GTimeVal *time_stamp;
@@ -444,7 +454,15 @@ hangouts_api_syncallevents (HangoutsApi
"]",
header, g_time_val_to_iso8601 (time_stamp));
- //hangouts_api_request (api, info, url_endpoint, FALSE, body);
+ hangouts_api_request (api, info, url_endpoint, FALSE, body);
+}
+
+static void
+hangouts_api_sendchatmessage_cb (PurpleHttpConnection *http_conn,
+ PurpleHttpResponse *response,
+ gpointer user_data)
+{
+
}
void
@@ -453,10 +471,8 @@ hangouts_api_sendchatmessage (HangoutsAp
HangoutsOffTheRecordStatus otr_status)
{
//TODO: segments should be in the protojson format
- /*static const HangoutsApiHttpInfo *info =
- {
-
- };*/
+ static const HangoutsApiHttpInfo *info =
+ { hangouts_api_sendchatmessage_cb };
guint32 client_generated_id;
gchar *url_endpoint, *image_info, *body, *header;
@@ -484,17 +500,23 @@ hangouts_api_sendchatmessage (HangoutsAp
header, segments, image_info, conversation_id,
client_generated_id, otr_status);
- //hangouts_api_request (api, info, url_endpoint, FALSE, body);
+ hangouts_api_request (api, info, url_endpoint, FALSE, body);
+}
+
+static void
+hangouts_api_setactiveclient_cb (PurpleHttpConnection *http_conn,
+ PurpleHttpResponse *response,
+ gpointer user_data)
+{
+
}
void
hangouts_api_setactiveclient (HangoutsApi *api, gboolean is_active,
gchar *timeout_sec)
{
- /*static const HangoutsApiHttpInfo *info =
- {
-
- };*/
+ static const HangoutsApiHttpInfo *info =
+ { hangouts_api_setactiveclient_cb };
gchar *url_endpoint, *is_active_flag, *body, *header;
HangoutsApiPrivate *priv;
@@ -517,6 +539,6 @@ hangouts_api_setactiveclient (HangoutsAp
header, is_active_flag, priv->email, priv->client_id,
timeout_sec);
- //hangouts_api_request (api, info, url_endpoint, FALSE, body);
+ hangouts_api_request (api, info, url_endpoint, FALSE, body);
}
More information about the Commits
mailing list