[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pidgin-devel
Subject:    Re: extracting message
From:       Jan Kaluza <hanzz.k () gmail ! com>
Date:       2009-03-29 12:27:34
Message-ID: 7e6b34c30903290527i56492f58o28f1ec8ad607cdcd () mail ! gmail ! com
[Download RAW message or body]

You should also test if message is not NULL before accessing it.

On Sun, Mar 29, 2009 at 2:21 PM, Jan Kaluza <hanzz.k@gmail.com> wrote:
> Hi,
> I don't know what are you trying to do, but I will try to help you.
>
> This is definition of function which will take message from
> sending_im_msg signal
> static char* modifyMessage(char * msg);
>
> And this is how you can call it:
> static void sending_im_msg(PurpleAccount *account, const char
> *receiver,  char **message){
>   char * newMsg;
>   newMsg = modifyMessage(*message);
>   g_free(*message);
>   *message = newMsg;
> }
>
> The code above is untested, but It should work. :)
>
> Jan "HanzZ" Kaluza
>
> On Sun, Mar 29, 2009 at 12:51 PM, arun kumar <arunkumar0107@gmail.com> wrote:
>> how to extract the message from the buffer in sending_im_msg signal? i
>> actually need to send it  as an argument  to another function which
>> takes a char* as an argument ...but buffer is a char ** pointer.....
>>
>>
>>
>>
>>
>> cheers,
>> arun
>>
>> _______________________________________________
>> Devel mailing list
>> Devel@pidgin.im
>> http://pidgin.im/cgi-bin/mailman/listinfo/devel
>>
>

_______________________________________________
Devel mailing list
Devel@pidgin.im
http://pidgin.im/cgi-bin/mailman/listinfo/devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic