Changeset 0b9daac for lib/oauth2.c


Ignore:
Timestamp:
2015-02-20T23:16:08Z (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth2.c

    r5ebff60 r0b9daac  
    3939
    4040#include <glib.h>
    41 #include "http_client.h"
    42 #include "oauth2.h"
    43 #include "oauth.h"
    44 #include "json.h"
    45 #include "json_util.h"
    46 #include "url.h"
     41#include "lib/http_client.h"
     42#include "lib/oauth2.h"
     43#include "lib/oauth.h"
     44#include "lib/json.h"
     45#include "lib/json_util.h"
     46#include "lib/url.h"
    4747
    4848char *oauth2_url(const struct oauth2_service *sp)
Note: See TracChangeset for help on using the changeset viewer.