Changeset 578e5b0 for lib


Ignore:
Timestamp:
2015-05-14T16:08:06Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
600e09c
Parents:
4225bec
Message:

Try to send settings as native types instead of always strings.

This is still ugly for most settings not owned by the plugin but that's
simply how this is implemented in BitlBee. Let's see how annoying and
painful this is really going to be.

Location:
lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lib/misc.c

    r4225bec r578e5b0  
    427427}
    428428
    429 int is_bool(char *value)
     429int is_bool(const char *value)
    430430{
    431431        if (*value == 0) {
     
    453453}
    454454
    455 int bool2int(char *value)
     455int bool2int(const char *value)
    456456{
    457457        int i;
  • lib/misc.h

    r4225bec r578e5b0  
    137137G_MODULE_EXPORT void random_bytes(unsigned char *buf, int count);
    138138
    139 G_MODULE_EXPORT int is_bool(char *value);
    140 G_MODULE_EXPORT int bool2int(char *value);
     139G_MODULE_EXPORT int is_bool(const char *value);
     140G_MODULE_EXPORT int bool2int(const char *value);
    141141
    142142G_MODULE_EXPORT struct ns_srv_reply **srv_lookup(char *service, char *protocol, char *domain);
Note: See TracChangeset for help on using the changeset viewer.