Re: [Vala] using a non-glib c library














ID3Lib defines numerous enums. Here's an example

typedef enum _ID3_TextEnc ID3_TextEnc; enum _ID3_TextEnc
{
  ID3TE_NONE = -1,
  ID3TE_ISO8859_1,
  ID3TE_UTF16,
  ID3TE_UTF16BE,
  ID3TE_UTF8,
  ID3TE_NUMENCODINGS,
  ID3TE_ASCII = ID3TE_ISO8859_1,
  ID3TE_UNICODE = ID3TE_UTF16
};

I'm not to sure how to bind them and I'm not sure how to use them after I bind them. Any ideas? 

One more thing, a lot of the functions return C style strings, (char *) are they the same as vala strings? 
(so I can replace char * with string?)



 EMAILING FOR THE GREATER GOOD
Join me                                           


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]