mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
136. [cleanup] <isc/commandline.h>, <isc/interfaceiter.h>,
<isc/net.h> and Win32's <isc/thread.h> needed ISC_LANG_BEGINDECLS/ISC_LANG_ENDDECLS.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
||||
136. [cleanup] <isc/commandline.h>, <isc/interfaceiter.h>,
|
||||
<isc/net.h> and Win32's <isc/thread.h> needed
|
||||
ISC_LANG_BEGINDECLS/ISC_LANG_ENDDECLS.
|
||||
|
||||
135. [cleanup] Win32's <isc/condition.h> did not need
|
||||
<isc/boolean.h>, now uses <isc/types.h> in place
|
||||
of <isc/time.h>, and needed ISC_LANG_BEGINDECLS
|
||||
|
@@ -15,9 +15,10 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: commandline.h,v 1.2 2000/02/03 23:07:48 halley Exp $ */
|
||||
/* $Id: commandline.h,v 1.3 2000/04/28 22:09:15 tale Exp $ */
|
||||
|
||||
#include <isc/boolean.h>
|
||||
#include <isc/lang.h>
|
||||
|
||||
extern int isc_commandline_index; /* Index into parent argv vector. */
|
||||
extern int isc_commandline_option; /* Character checked for validity. */
|
||||
@@ -28,5 +29,9 @@ extern char *isc_commandline_progname; /* For printing error messages. */
|
||||
extern isc_boolean_t isc_commandline_errprint; /* Print error message. */
|
||||
extern isc_boolean_t isc_commandline_reset; /* Reset getopt. */
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
int
|
||||
isc_commandline_parse(int argc, char * const *argv, const char *options);
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
@@ -40,8 +40,9 @@
|
||||
*** Imports
|
||||
***/
|
||||
|
||||
#include <isc/types.h>
|
||||
#include <isc/lang.h>
|
||||
#include <isc/netaddr.h>
|
||||
#include <isc/types.h>
|
||||
|
||||
/*
|
||||
* Public structure describing a network interface.
|
||||
@@ -67,6 +68,8 @@ struct isc_interface {
|
||||
*** Functions
|
||||
***/
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
isc_result_t
|
||||
isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp);
|
||||
/*
|
||||
@@ -124,4 +127,6 @@ isc_interfaceiter_destroy(isc_interfaceiter_t **iterp);
|
||||
* Destroy the iterator.
|
||||
*/
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_INTERFACEITER_H */
|
||||
|
@@ -64,6 +64,7 @@
|
||||
/***
|
||||
*** Imports.
|
||||
***/
|
||||
#include <isc/lang.h>
|
||||
#include <isc/platform.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -119,6 +120,8 @@ typedef isc_uint16_t in_port_t;
|
||||
*** Functions.
|
||||
***/
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
isc_result_t
|
||||
isc_net_probeipv4(void);
|
||||
/*
|
||||
@@ -158,12 +161,6 @@ int isc_net_aton(const char *cp, struct in_addr *addr);
|
||||
#define inet_aton isc_net_aton
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Tell emacs to use C mode for this file.
|
||||
*
|
||||
* Local Variables:
|
||||
* mode: c
|
||||
* End:
|
||||
*/
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_NET_H */
|
||||
|
@@ -108,6 +108,7 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
#ifndef AF_INET6
|
||||
@@ -135,6 +136,8 @@ typedef isc_uint16_t in_port_t;
|
||||
*** Functions.
|
||||
***/
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
isc_result_t
|
||||
isc_net_probeipv4(void);
|
||||
/*
|
||||
@@ -174,4 +177,6 @@ int isc_net_aton(const char *cp, struct in_addr *addr);
|
||||
#define inet_aton isc_net_aton
|
||||
#endif
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_NET_H */
|
||||
|
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <isc/lang.h>
|
||||
#include <isc/result.h>
|
||||
|
||||
typedef HANDLE isc_thread_t;
|
||||
@@ -27,10 +28,16 @@ typedef unsigned int isc_threadresult_t;
|
||||
typedef void * isc_threadarg_t;
|
||||
typedef isc_threadresult_t (WINAPI *isc_threadfunc_t)(isc_threadarg_t);
|
||||
|
||||
isc_result_t isc_thread_create(isc_threadfunc_t, isc_threadarg_t,
|
||||
isc_thread_t *);
|
||||
isc_result_t isc_thread_join(isc_thread_t, isc_threadresult_t *);
|
||||
#define isc_thread_self \
|
||||
(unsigned long)GetCurrentThreadId
|
||||
#define isc_thread_self (unsigned long)GetCurrentThreadId
|
||||
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
isc_result_t
|
||||
isc_thread_create(isc_threadfunc_t, isc_threadarg_t, isc_thread_t *);
|
||||
|
||||
isc_result_t
|
||||
isc_thread_join(isc_thread_t, isc_threadresult_t *);
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* ISC_THREAD_H */
|
||||
|
Reference in New Issue
Block a user