marking.c
changeset 1 c8473c43ce72
parent 0 aad5201e3413
child 2 30b66610f86a
equal deleted inserted replaced
0:aad5201e3413 1:c8473c43ce72
     1 
     1 
     2 /* Copyright 2009 Myhailo Danylenko
     2 /*
     3 
     3  * marking.c            -- Actions on multiple buddies
     4 This file is part of @PROJECT@
     4  *
     5 
     5  * Copyrigth (C) 2009      Myhailo Danylenko <isbear@ukrpost.net>
     6 @PROJECT@ is free software: you can redistribute it and/or modify
     6  *
     7 it under the terms of the GNU General Public License as published by
     7  * This program is free software; you can redistribute it and/or modify
     8 the Free Software Foundation, either version 2 of the License, or
     8  * it under the terms of the GNU General Public License as published by
     9 (at your option) any later version.
     9  * the Free Software Foundation; either version 2 of the License, or (at
    10 
    10  * your option) any later version.
    11 This program is distributed in the hope that it will be useful,
    11  *
    12 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  * This program is distributed in the hope that it will be useful, but
    13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13  * WITHOUT ANY WARRANTY; without even the implied warranty of
    14 GNU General Public License for more details.
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    15 
    15  * General Public License for more details.
    16 You should have received a copy of the GNU General Public License
    16  *
    17 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
    17  * You should have received a copy of the GNU General Public License
       
    18  * along with this program; if not, write to the Free Software
       
    19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
       
    20  * USA
       
    21  */
    18 
    22 
    19 #include <glib.h>
    23 #include <glib.h>
    20 #include <gmodule.h>
    24 #include <gmodule.h>
    21 #include <string.h>
    25 #include <string.h>
    22 
    26 
    30 static GSList *marked_jids = NULL;
    34 static GSList *marked_jids = NULL;
    31 
    35 
    32 // mark set jid
    36 // mark set jid
    33 // mark clear jid
    37 // mark clear jid
    34 // mark toggle jid
    38 // mark toggle jid
    35 // marked clear
       
    36 // marked do cmd
       
    37 static void do_mark (char *arg)
    39 static void do_mark (char *arg)
    38 {
    40 {
    39 	char     **args   = split_arg (arg, 2, 1);
    41 	char     **args   = split_arg (arg, 2, 1);
    40 	char      *cmd    = NULL;
    42 	char      *cmd    = NULL;
    41 	char      *jid    = NULL;
    43 	char      *jid    = NULL;
    94 		g_free (jid);
    96 		g_free (jid);
    95 
    97 
    96 	free_arg_lst (args);
    98 	free_arg_lst (args);
    97 }
    99 }
    98 
   100 
       
   101 // marked clear
       
   102 // marked do cmd
    99 void do_marked (char *arg)
   103 void do_marked (char *arg)
   100 {
   104 {
   101 	char **args = split_arg (arg, 2, 1);
   105 	char **args = split_arg (arg, 2, 1);
   102 	char  *cmd = args[0];
   106 	char  *cmd = args[0];
   103 
   107