Use compatibility framework instead of atheme API directly.

This commit is contained in:
William Pitcock 2012-10-04 05:01:29 +00:00
parent bc8c603db6
commit 6b4777173a
53 changed files with 53 additions and 53 deletions

View File

@ -28,7 +28,7 @@
* of Atheme to compile a subset of the Atheme 7.1 API, if such API features * of Atheme to compile a subset of the Atheme 7.1 API, if such API features
* are unavailable. * are unavailable.
*/ */
#ifdef CURRENT_ABI_REVISION < 710000 #if CURRENT_ABI_REVISION < 710000
typedef char *stringref; typedef char *stringref;
#endif #endif

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
#ifdef __Linux__ #ifdef __Linux__
#include <execinfo.h> #include <execinfo.h>

View File

@ -7,7 +7,7 @@
* $Id$ * $Id$
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "template.h" #include "template.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -34,7 +34,7 @@
* bad idea. * bad idea.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -4,7 +4,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "../chanserv/chanserv.h" #include "../chanserv/chanserv.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* Set/unset DALnet channel mode +r on registration/deregistration. * Set/unset DALnet channel mode +r on registration/deregistration.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* Sends a customized welcome message on channel registration. * Sends a customized welcome message on channel registration.
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -41,7 +41,7 @@
* }; * };
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "datastream.h" #include "datastream.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "datastream.h" #include "datastream.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -34,7 +34,7 @@
* privacy concerns; you probably shouldn't. * privacy concerns; you probably shouldn't.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* This file contains the main() routine. * This file contains the main() routine.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
/* /*
* Set this to the string of mlock changes you want to make. * Set this to the string of mlock changes you want to make.

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
/* MEMOLEN + 8, so the "[FORCE] " string will fit */ /* MEMOLEN + 8, so the "[FORCE] " string will fit */
#define FMEMOLEN 308 #define FMEMOLEN 308

View File

@ -7,7 +7,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "uplink.h" #include "uplink.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -5,7 +5,7 @@
* Clean obnoxious nicknames, such as LaMENiCK -> lamenick. * Clean obnoxious nicknames, such as LaMENiCK -> lamenick.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* This file contains code for the NickServ FENFORCE function. * This file contains code for the NickServ FENFORCE function.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* This file contains code for the NickServ FORBID function. * This file contains code for the NickServ FORBID function.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -9,7 +9,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -14,7 +14,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -5,7 +5,7 @@
* This file contains code for the NickServ LISTLOGINS function. * This file contains code for the NickServ LISTLOGINS function.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
#ifndef _WIN32 #ifndef _WIN32

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
#ifndef _WIN32 #ifndef _WIN32

View File

@ -5,7 +5,7 @@
* Sends a customized welcome message on nickname registration. * Sends a customized welcome message on nickname registration.
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -5,7 +5,7 @@
* This file contains code for delaying user registration * This file contains code for delaying user registration
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
#include <limits.h> #include <limits.h>

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
#include "conf.h" #include "conf.h"
#include "datastream.h" #include "datastream.h"

View File

@ -24,7 +24,7 @@
* Thanks for reading my crappy docs, and have a nice day. * Thanks for reading my crappy docs, and have a nice day.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -10,7 +10,7 @@
* setting to time out/expire. * setting to time out/expire.
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
#define DEFCON_CMODE "R" #define DEFCON_CMODE "R"
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -2,7 +2,7 @@
* elly+atheme@leptoquark.net * elly+atheme@leptoquark.net
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "uplink.h" /* sts() */ #include "uplink.h" /* sts() */

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -10,7 +10,7 @@
* but would not remove the user, but the user cannot (fully) reconnect. * but would not remove the user, but the user cannot (fully) reconnect.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -7,7 +7,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* The kqueue is added to the main poll loop. * The kqueue is added to the main poll loop.
*/ */
#include "atheme.h" #include "atheme-compat.h"
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <sys/event.h> #include <sys/event.h>

View File

@ -5,7 +5,7 @@
* Does an A record lookup. * Does an A record lookup.
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* Dump/restore channel modes * Dump/restore channel modes
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -1,4 +1,4 @@
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -6,7 +6,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (

View File

@ -5,7 +5,7 @@
* Reads data from a child process via a pipe. * Reads data from a child process via a pipe.
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include "datastream.h" #include "datastream.h"
#ifndef _WIN32 #ifndef _WIN32

View File

@ -5,7 +5,7 @@
* Looks for users and performs actions on them. * Looks for users and performs actions on them.
*/ */
#include "atheme.h" #include "atheme-compat.h"
#include <limits.h> #include <limits.h>
DECLARE_MODULE_V1 DECLARE_MODULE_V1

View File

@ -9,7 +9,7 @@
* *
*/ */
#include "atheme.h" #include "atheme-compat.h"
DECLARE_MODULE_V1 DECLARE_MODULE_V1
( (