]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Trace-related changes.
authorTed Lemon <source@isc.org>
Mon, 12 Feb 2001 20:46:19 +0000 (20:46 +0000)
committerTed Lemon <source@isc.org>
Mon, 12 Feb 2001 20:46:19 +0000 (20:46 +0000)
includes/omapip/omapip_p.h

index 4fe9a9ea5aeb2178f513721b3b965bcde13ea8fc..9840dcab1aaf96d4022a1377a2076f9ded23c58d 100644 (file)
@@ -3,7 +3,7 @@
    Private master include file for the OMAPI library. */
 
 /*
- * Copyright (c) 1996-2000 Internet Software Consortium.
+ * Copyright (c) 1996-2001 Internet Software Consortium.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -75,6 +75,7 @@
 #include <omapip/convert.h>
 #include <omapip/hash.h>
 #include <omapip/omapip.h>
+#include <omapip/trace.h>
 
 /* OMAPI protocol header, version 1.00 */
 typedef struct {
@@ -179,6 +180,7 @@ typedef struct __omapi_listener_object {
 typedef struct __omapi_connection_object {
        OMAPI_OBJECT_PREAMBLE;
        int socket;             /* Connection socket. */
+       int index;
        omapi_connection_state_t state;
        struct sockaddr_in remote_addr;
        struct sockaddr_in local_addr;
@@ -261,6 +263,15 @@ isc_result_t omapi_connection_sign_data (int mode,
                                         const unsigned char *data,
                                         const unsigned len,
                                         omapi_typed_data_t **result);
+isc_result_t omapi_listener_connect (omapi_connection_object_t **obj,
+                                    omapi_listener_object_t *listener,
+                                    int socket,
+                                    struct sockaddr_in *remote_addr);
+void omapi_listener_trace_setup (void);
+void omapi_connection_register (omapi_connection_object_t *,
+                               const char *, int);
+OMAPI_ARRAY_TYPE_DECL(omapi_listener, omapi_listener_object_t);
+OMAPI_ARRAY_TYPE_DECL(omapi_connection, omapi_connection_object_t);
 
 extern int log_priority;
 extern int log_perror;