Re: libseed-list char** <--> arrays
- From: "Alan Knowles" <alan akbkhome com>
- To: "Jonh Wendell" <libseed-list-bounces gnome org>
- Cc: libseed-list gnome org
- Subject: Re: libseed-list char** <--> arrays
- Date: Sat, 16 Oct 2010 10:33:28 +0800
seed_gi_make_array is the method that is doing that, Since it initializes lenght+1 as zero fill, it should be zero terminated.
Regards
Alan
--- On 16/Oct/2010, Jonh Wendell wrote:
> Hi, folks.
>
> In vinagre, I have a virtual function like this:
> /**
> * vinagre_protocol_get_public_description:
> * @protocol: A protocol
> *
> * Return value: (array zero-terminated=1) (element-type utf8) (transfer
> full):
> */
> gchar **
> vinagre_protocol_get_public_description (VinagreProtocol *protocol)
> {...}
>
> It's up to the plugins to implement this function. In C everything is
> OK.
>
> About javascript... I'm doing the following:
> ...
> get_public_description: function () {
> return new Array ("Telnet", _("Access old UNIX machines"));
> },
> ...
>
> The doubt is: How to convert a javascript array into a C array
> zero-terminated? We don't have a seed_value_to_array()...
>
> Thanks,
> --
> Jonh Wendell
> http://www.bani.com.br
>
> _______________________________________________
> libseed-list mailing list
> libseed-list gnome org
> http://mail.gnome.org/mailman/listinfo/libseed-list
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]