Changeset 0b9daac for protocols/twitter


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/twitter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r5ebff60 r0b9daac  
    2323****************************************************************************/
    2424
    25 #include "nogaim.h"
    26 #include "oauth.h"
     25#include "protocols/nogaim.h"
     26#include "lib/oauth.h"
    2727#include "twitter.h"
    2828#include "twitter_http.h"
    2929#include "twitter_lib.h"
    30 #include "url.h"
     30#include "lib/url.h"
    3131
    3232GSList *twitter_connections = NULL;
  • protocols/twitter/twitter.h

    r5ebff60 r0b9daac  
    2323****************************************************************************/
    2424
    25 #include "nogaim.h"
     25#include "protocols/nogaim.h"
    2626
    2727#ifndef _TWITTER_H
  • protocols/twitter/twitter_http.c

    r5ebff60 r0b9daac  
    3131#include "twitter.h"
    3232#include "bitlbee.h"
    33 #include "url.h"
    34 #include "misc.h"
    35 #include "base64.h"
    36 #include "oauth.h"
     33#include "lib/url.h"
     34#include "lib/misc.h"
     35#include "lib/base64.h"
     36#include "lib/oauth.h"
    3737#include <ctype.h>
    3838#include <errno.h>
  • protocols/twitter/twitter_http.h

    r5ebff60 r0b9daac  
    2525#define _TWITTER_HTTP_H
    2626
    27 #include "nogaim.h"
    28 #include "http_client.h"
     27#include "protocols/nogaim.h"
     28#include "lib/http_client.h"
    2929
    3030typedef enum {
  • protocols/twitter/twitter_lib.c

    r5ebff60 r0b9daac  
    3232#include "twitter.h"
    3333#include "bitlbee.h"
    34 #include "url.h"
    35 #include "misc.h"
    36 #include "base64.h"
     34#include "lib/url.h"
     35#include "lib/misc.h"
     36#include "lib/base64.h"
    3737#include "twitter_lib.h"
    38 #include "json_util.h"
     38#include "lib/json_util.h"
    3939#include <ctype.h>
    4040#include <errno.h>
  • protocols/twitter/twitter_lib.h

    r5ebff60 r0b9daac  
    2626#define _TWITTER_LIB_H
    2727
    28 #include "nogaim.h"
     28#include "protocols/nogaim.h"
    2929#include "twitter_http.h"
    3030
Note: See TracChangeset for help on using the changeset viewer.