mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
removed unused function isccc_ccmsg_keepbuffer();
fixed incorrect header multi-inclusion protection macros; changed comment referring to 'DNS message' to say 'command channel message'
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: ccmsg.c,v 1.1 2001/03/27 00:44:48 bwelling Exp $ */
|
/* $Id: ccmsg.c,v 1.2 2001/03/27 18:34:55 gson Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -190,16 +190,6 @@ isccc_ccmsg_cancelread(isccc_ccmsg_t *ccmsg) {
|
|||||||
isc_socket_cancel(ccmsg->sock, NULL, ISC_SOCKCANCEL_RECV);
|
isc_socket_cancel(ccmsg->sock, NULL, ISC_SOCKCANCEL_RECV);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
isccc_ccmsg_keepbuffer(isccc_ccmsg_t *ccmsg, isc_buffer_t *buffer) {
|
|
||||||
REQUIRE(VALID_CCMSG(ccmsg));
|
|
||||||
REQUIRE(buffer != NULL);
|
|
||||||
|
|
||||||
*buffer = ccmsg->buffer;
|
|
||||||
ccmsg->buffer.base = NULL;
|
|
||||||
ccmsg->buffer.length = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
void
|
void
|
||||||
isccc_ccmsg_freebuffer(isccc_ccmsg_t *ccmsg) {
|
isccc_ccmsg_freebuffer(isccc_ccmsg_t *ccmsg) {
|
||||||
|
@@ -15,10 +15,10 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: ccmsg.h,v 1.1 2001/03/27 00:44:51 bwelling Exp $ */
|
/* $Id: ccmsg.h,v 1.2 2001/03/27 18:34:56 gson Exp $ */
|
||||||
|
|
||||||
#ifndef DNS_CCMSG_H
|
#ifndef ISCCC_CCMSG_H
|
||||||
#define DNS_CCMSG_H 1
|
#define ISCCC_CCMSG_H 1
|
||||||
|
|
||||||
#include <isc/buffer.h>
|
#include <isc/buffer.h>
|
||||||
#include <isc/lang.h>
|
#include <isc/lang.h>
|
||||||
@@ -78,8 +78,8 @@ isc_result_t
|
|||||||
isccc_ccmsg_readmessage(isccc_ccmsg_t *ccmsg,
|
isccc_ccmsg_readmessage(isccc_ccmsg_t *ccmsg,
|
||||||
isc_task_t *task, isc_taskaction_t action, void *arg);
|
isc_task_t *task, isc_taskaction_t action, void *arg);
|
||||||
/*
|
/*
|
||||||
* Schedule an event to be delivered when a DNS message is readable, or
|
* Schedule an event to be delivered when a command channel message is
|
||||||
* when an error occurs on the socket.
|
* readable, or when an error occurs on the socket.
|
||||||
*
|
*
|
||||||
* Requires:
|
* Requires:
|
||||||
*
|
*
|
||||||
@@ -111,20 +111,6 @@ isccc_ccmsg_cancelread(isccc_ccmsg_t *ccmsg);
|
|||||||
* "ccmsg" be valid.
|
* "ccmsg" be valid.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
|
||||||
isccc_ccmsg_keepbuffer(isccc_ccmsg_t *ccmsg, isc_buffer_t *buffer);
|
|
||||||
/*
|
|
||||||
* If a isccc buffer is to be kept between calls, this function marks the
|
|
||||||
* internal state-machine buffer as invalid, and copies all the contents
|
|
||||||
* of the state into "buffer".
|
|
||||||
*
|
|
||||||
* Requires:
|
|
||||||
*
|
|
||||||
* "ccmsg" be valid.
|
|
||||||
*
|
|
||||||
* "buffer" be non-NULL.
|
|
||||||
*/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
isccc_ccmsg_invalidate(isccc_ccmsg_t *ccmsg);
|
isccc_ccmsg_invalidate(isccc_ccmsg_t *ccmsg);
|
||||||
/*
|
/*
|
||||||
@@ -142,4 +128,4 @@ isccc_ccmsg_invalidate(isccc_ccmsg_t *ccmsg);
|
|||||||
|
|
||||||
ISC_LANG_ENDDECLS
|
ISC_LANG_ENDDECLS
|
||||||
|
|
||||||
#endif /* DNS_CCMSG_H */
|
#endif /* ISCCC_CCMSG_H */
|
||||||
|
Reference in New Issue
Block a user