Rename xmpp.h to strophe.h and apply the name changes to the internal
header multiple include protection.
This commit is contained in:
@@ -48,7 +48,7 @@ Sources = Split("""
|
||||
""")
|
||||
|
||||
Headers = Split("""
|
||||
xmpp.h
|
||||
strophe.h
|
||||
common.h
|
||||
sock.h
|
||||
hash.h
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <xmpp.h>
|
||||
#include <strophe.h>
|
||||
|
||||
int handle_reply(xmpp_conn_t * const conn,
|
||||
xmpp_stanza_t * const stanza,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <xmpp.h>
|
||||
#include <strophe.h>
|
||||
|
||||
void conn_handler(xmpp_conn_t * const conn, const xmpp_conn_event_t status,
|
||||
const int error, xmpp_stream_error_t * const stream_error,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <xmpp.h>
|
||||
#include <strophe.h>
|
||||
|
||||
int handle_reply(xmpp_conn_t * const conn,
|
||||
xmpp_stanza_t * const stanza,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "sasl.h"
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
** distribution.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_XMPP_COMMON_H__
|
||||
#define __LIBXMPP_XMPP_COMMON_H__
|
||||
#ifndef __LIBSTROPHE_COMMON_H__
|
||||
#define __LIBSTROPHE_COMMON_H__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
@@ -22,7 +22,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "sock.h"
|
||||
#include "hash.h"
|
||||
#include "util.h"
|
||||
@@ -269,4 +269,4 @@ void disconnect_mem_error(xmpp_conn_t * const conn);
|
||||
/* auth functions */
|
||||
void auth_handle_open(xmpp_conn_t * const conn);
|
||||
|
||||
#endif /* __LIBXMPP_XMPP_COMMON_H__ */
|
||||
#endif /* __LIBSTROPHE_COMMON_H__ */
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
#define DEFAULT_SEND_QUEUE_MAX 64
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include <sys/select.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
#define DEFAULT_TIMEOUT 1
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
void handler_fire_stanza(xmpp_conn_t * const conn,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "hash.h"
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
** distribution.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_HASH_H__
|
||||
#define __LIBXMPP_HASH_H__
|
||||
#ifndef __LIBSTROPHE_HASH_H__
|
||||
#define __LIBSTROPHE_HASH_H__
|
||||
|
||||
typedef struct _hash_t hash_t;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
/** join jid component parts to form a new jid string */
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "expat.h"
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
static void _log_open_tag(xmpp_conn_t * const conn,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "sasl.h"
|
||||
#include "md5.h"
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
** distribution.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_SASL_H__
|
||||
#define __LIBXMPP_SASL_H__
|
||||
#ifndef __LIBSTROPHE_SASL_H__
|
||||
#define __LIBSTROPHE_SASL_H__
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
|
||||
/** low-level sasl routines */
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
** distribution.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_SOCK_H__
|
||||
#define __LIBXMPP_SOCK_H__
|
||||
#ifndef __LIBSTROPHE_SOCK_H__
|
||||
#define __LIBSTROPHE_SOCK_H__
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -39,4 +39,4 @@ int sock_is_recoverable(const int error);
|
||||
/* checks for an error after connect, return 0 if connect successful */
|
||||
int sock_connect_error(const sock_t sock);
|
||||
|
||||
#endif /* __LIBXMPP_SOCK_H__ */
|
||||
#endif /* __LIBSTROPHE_SOCK_H__ */
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "hash.h"
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "util.h"
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
** distribution.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_UTIL_H__
|
||||
#define __LIBXMPP_UTIL_H__
|
||||
#ifndef __LIBSTROPHE_UTIL_H__
|
||||
#define __LIBSTROPHE_UTIL_H__
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <stdint.h>
|
||||
@@ -23,4 +23,4 @@
|
||||
uint64_t time_stamp(void);
|
||||
uint64_t time_elapsed(uint64_t t1, uint64_t t2);
|
||||
|
||||
#endif /* __LIBXMPP_UTIL_H__ */
|
||||
#endif /* __LIBSTROPHE_UTIL_H__ */
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
/* xmpp.h
|
||||
** XMPP client library API
|
||||
/* strophe.h
|
||||
** libstrophe XMPP client library API
|
||||
**
|
||||
** Copyright (C) 2005 OGG, LLC. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __LIBXMPP_XMPP_H__
|
||||
#define __LIBXMPP_XMPP_H__
|
||||
#ifndef __LIBSTROPHE_STROPHE_H__
|
||||
#define __LIBSTROPHE_STROPHE_H__
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -258,4 +258,4 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout);
|
||||
void xmpp_run(xmpp_ctx_t *ctx);
|
||||
void xmpp_stop(xmpp_ctx_t *ctx);
|
||||
|
||||
#endif /* __LIBXMPP_XMPP_H__ */
|
||||
#endif /* __LIBSTROPHE_STROPHE_H__ */
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "sasl.h"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
static int log_called = 0;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "hash.h"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
|
||||
static const char jid1[] = "foo@bar.com";
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "xmpp.h"
|
||||
#include "strophe.h"
|
||||
#include "common.h"
|
||||
#include "sasl.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user