Changeset 0b9daac for protocols/jabber


Ignore:
Timestamp:
2015-02-20T23:16:08Z (10 years ago)
Author:
dequis <dx@…>
Parents:
5ebff60
git-author:
dequis <dx@…> (27-12-14 04:06:45)
git-committer:
dequis <dx@…> (20-02-15 23:16:08)
Message:

Reorganize include files to avoid conflicts with other libs

  • Change all header includes to be relative to the project root
  • Remove -I${includedir} from bitlbee.pc Cflags
  • Install lib and protocols headers to their own directories. So now it is:

/usr/include/bitlbee/*.h
/usr/include/bitlbee/lib/*.h
/usr/include/bitlbee/protocols/*.h

This breaks backwards compatibility of third party plugins, but now
they don't have to do ambiguous includes like #include <proxy.h>

This also fixes trac ticket 1170 - conflicts when libproxy and liboauth
are installed at the same time bitlbee is built, which the macports
project ran into several times.

Location:
protocols/jabber
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "sha1.h"
     25#include "lib/sha1.h"
    2626
    2727static xt_status jabber_chat_join_failed(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
  • protocols/jabber/io.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "ssl_client.h"
     25#include "lib/ssl_client.h"
    2626
    2727static gboolean jabber_write_callback(gpointer data, gint fd, b_input_condition cond);
  • protocols/jabber/iq.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "sha1.h"
     25#include "lib/sha1.h"
    2626
    2727static xt_status jabber_parse_roster(struct im_connection *ic, struct xt_node *node, struct xt_node *orig);
  • protocols/jabber/jabber.c

    r5ebff60 r0b9daac  
    2828#include <stdio.h>
    2929
    30 #include "ssl_client.h"
    31 #include "xmltree.h"
     30#include "lib/ssl_client.h"
     31#include "lib/xmltree.h"
    3232#include "bitlbee.h"
    3333#include "jabber.h"
    34 #include "oauth.h"
    35 #include "md5.h"
     34#include "lib/oauth.h"
     35#include "lib/md5.h"
    3636
    3737GSList *jabber_connections;
  • protocols/jabber/jabber.h

    r5ebff60 r0b9daac  
    2828
    2929#include "bitlbee.h"
    30 #include "md5.h"
    31 #include "xmltree.h"
     30#include "lib/md5.h"
     31#include "lib/xmltree.h"
    3232
    3333extern GSList *jabber_connections;
  • protocols/jabber/jabber_util.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "md5.h"
    26 #include "base64.h"
     25#include "lib/md5.h"
     26#include "lib/base64.h"
    2727
    2828static unsigned int next_id = 1;
  • protocols/jabber/s5bytestream.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "sha1.h"
     25#include "lib/sha1.h"
    2626#include "lib/ftutil.h"
    2727#include <poll.h>
  • protocols/jabber/sasl.c

    r5ebff60 r0b9daac  
    2525
    2626#include "jabber.h"
    27 #include "base64.h"
    28 #include "oauth2.h"
    29 #include "oauth.h"
     27#include "lib/base64.h"
     28#include "lib/oauth2.h"
     29#include "lib/oauth.h"
    3030
    3131const struct oauth2_service oauth2_service_google =
  • protocols/jabber/si.c

    r5ebff60 r0b9daac  
    2323
    2424#include "jabber.h"
    25 #include "sha1.h"
     25#include "lib/sha1.h"
    2626
    2727void jabber_si_answer_request(file_transfer_t *ft);
Note: See TracChangeset for help on using the changeset viewer.