Changeset 8c09bb3 for skype


Ignore:
Timestamp:
2009-01-07T00:58:15Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
359f4d9
Parents:
5258dcc9
Message:

whitespaces fixes

mainly long lines, except in skype_read_callback()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r5258dcc9 r8c09bb3  
    165165{
    166166        struct skype_buddy_ask_data *bla = data;
    167         char *buf = g_strdup_printf("SET USER %s ISAUTHORIZED TRUE", bla->handle);
     167        char *buf = g_strdup_printf("SET USER %s ISAUTHORIZED TRUE",
     168                bla->handle);
    168169        skype_write(bla->ic, buf);
    169170        g_free(buf);
     
    175176{
    176177        struct skype_buddy_ask_data *bla = data;
    177         char *buf = g_strdup_printf("SET USER %s ISAUTHORIZED FALSE", bla->handle);
     178        char *buf = g_strdup_printf("SET USER %s ISAUTHORIZED FALSE",
     179                bla->handle);
    178180        skype_write(bla->ic, buf);
    179181        g_free(buf);
     
    184186void skype_buddy_ask(struct im_connection *ic, char *handle, char *message)
    185187{
    186         struct skype_buddy_ask_data *bla = g_new0(struct skype_buddy_ask_data, 1);
     188        struct skype_buddy_ask_data *bla = g_new0(struct skype_buddy_ask_data,
     189                1);
    187190        char *buf;
    188191
     
    190193        bla->handle = g_strdup(handle);
    191194
    192         buf = g_strdup_printf("The user %s wants to add you to his/her buddy list, saying: '%s'.", handle, message);
     195        buf = g_strdup_printf("The user %s wants to add you to "
     196                "his/her buddy list, saying: '%s'.", handle, message);
    193197        imcb_ask(ic, buf, bla, skype_buddy_ask_yes, skype_buddy_ask_no);
    194198        g_free(buf);
     
    198202{
    199203        struct skype_buddy_ask_data *bla = data;
    200         char *buf = g_strdup_printf("SET CALL %s STATUS INPROGRESS", bla->handle);
     204        char *buf = g_strdup_printf("SET CALL %s STATUS INPROGRESS",
     205                bla->handle);
    201206        skype_write(bla->ic, buf);
    202207        g_free(buf);
     
    208213{
    209214        struct skype_buddy_ask_data *bla = data;
    210         char *buf = g_strdup_printf("SET CALL %s STATUS FINISHED", bla->handle);
     215        char *buf = g_strdup_printf("SET CALL %s STATUS FINISHED",
     216                bla->handle);
    211217        skype_write(bla->ic, buf);
    212218        g_free(buf);
     
    217223void skype_call_ask(struct im_connection *ic, char *call_id, char *message)
    218224{
    219         struct skype_buddy_ask_data *bla = g_new0(struct skype_buddy_ask_data, 1);
     225        struct skype_buddy_ask_data *bla = g_new0(struct skype_buddy_ask_data,
     226                1);
    220227
    221228        bla->ic = ic;
     
    267274}
    268275
    269 static gboolean skype_read_callback(gpointer data, gint fd, b_input_condition cond)
     276static gboolean skype_read_callback(gpointer data, gint fd,
     277                                    b_input_condition cond)
    270278{
    271279        struct im_connection *ic = data;
     
    802810
    803811        if (sd->bfd <= 0)
    804                 sd->bfd = b_input_add(sd->fd, GAIM_INPUT_READ, skype_read_callback, ic);
     812                sd->bfd = b_input_add(sd->fd, GAIM_INPUT_READ,
     813                        skype_read_callback, ic);
    805814
    806815        /* Log in */
     
    851860
    852861        imcb_log(ic, "Connecting");
    853         sd->ssl = ssl_connect(set_getstr(&acc->set, "server"), set_getint(&acc->set, "port"), skype_connected, ic);
     862        sd->ssl = ssl_connect(set_getstr(&acc->set, "server"),
     863                set_getint(&acc->set, "port"), skype_connected, ic);
    854864        sd->fd = sd->ssl ? ssl_getfd(sd->ssl) : -1;
    855865        sd->username = g_strdup(acc->user);
     
    876886}
    877887
    878 static int skype_buddy_msg(struct im_connection *ic, char *who, char *message, int flags)
     888static int skype_buddy_msg(struct im_connection *ic, char *who, char *message,
     889                           int flags)
    879890{
    880891        char *buf, *ptr, *nick;
     
    908919}
    909920
    910 static void skype_set_away(struct im_connection *ic, char *state_txt, char *message)
     921static void skype_set_away(struct im_connection *ic, char *state_txt,
     922                           char *message)
    911923{
    912924        const struct skype_away_state *state;
     
    929941        if (l == NULL)
    930942                for (i = 0; skype_away_state_list[i].full_name; i++)
    931                         l = g_list_append(l, (void *)skype_away_state_list[i].full_name);
     943                        l = g_list_append(l,
     944                                (void *)skype_away_state_list[i].full_name);
    932945
    933946        return l;
     
    983996                /* We are ending a call */
    984997                if (sd->call_id) {
    985                         buf = g_strdup_printf("SET CALL %s STATUS FINISHED", sd->call_id);
     998                        buf = g_strdup_printf("SET CALL %s STATUS FINISHED",
     999                                sd->call_id);
    9861000                        skype_write(ic, buf);
    9871001                        g_free(buf);
     
    10021016        if (ptr)
    10031017                *ptr = '\0';
    1004         buf = g_strdup_printf("SET USER %s BUDDYSTATUS 2 Please authorize me\n", nick);
     1018        buf = g_strdup_printf("SET USER %s BUDDYSTATUS 2 Please authorize me\n",
     1019                nick);
    10051020        skype_write(ic, buf);
    10061021        g_free(nick);
     
    10581073        struct skype_data *sd = ic->proto_data;
    10591074        char *buf;
    1060         buf = g_strdup_printf("ALTER CHAT %s SETTOPIC %s\n", gc->title, message);
     1075        buf = g_strdup_printf("ALTER CHAT %s SETTOPIC %s\n",
     1076                gc->title, message);
    10611077        skype_write(ic, buf);
    10621078        g_free(buf);
     
    11451161        set_t *s;
    11461162
    1147         s = set_add(&acc->set, "server", SKYPE_DEFAULT_SERVER, set_eval_account, acc);
     1163        s = set_add(&acc->set, "server", SKYPE_DEFAULT_SERVER, set_eval_account,
     1164                acc);
    11481165        s->flags |= ACC_SET_OFFLINE_ONLY;
    11491166
     
    11511168        s->flags |= ACC_SET_OFFLINE_ONLY;
    11521169
    1153         s = set_add(&acc->set, "display_name", NULL, skype_set_display_name, acc);
     1170        s = set_add(&acc->set, "display_name", NULL, skype_set_display_name,
     1171                acc);
    11541172        s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;
    11551173
     
    11651183        s->flags |= ACC_SET_OFFLINE_ONLY;
    11661184
    1167         s = set_add(&acc->set, "skypeconsole_receive", "false", set_eval_bool, acc);
     1185        s = set_add(&acc->set, "skypeconsole_receive", "false", set_eval_bool,
     1186                acc);
    11681187        s->flags |= ACC_SET_OFFLINE_ONLY;
    11691188
     
    11951214        register_protocol(ret);
    11961215}
    1197 
    1198 /* vim: set ts=2 sw=2 noet: */
Note: See TracChangeset for help on using the changeset viewer.