add bug closure to changelog
[debian/amanda] / common-src / directtcp.h
index 91fb19df1a700b29fbc17983e1b7eefd6861dd61..33c45771def7d825a355f3e497beecede3a74415 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
- * Copyright (c) 2008,2009 Zmanda, Inc.  All Rights Reserved.
+ * Copyright (c) 2008-2012 Zmanda, Inc.  All Rights Reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 as published
 #define DIRECTTCP_H
 
 #include <glib.h>
+#include <amanda.h>
 
-/* A combination of IP address (expressed as an integer in host byte
- * order) and port.  These are commonly seen in arrays terminated by
- * a {0,0}.  Note that, right now, only IPv4 addresses are supported
- * (since this is all that NDMP supports). */
-typedef struct DirectTCPAddr_ {
-    guint32 ipv4;
-    guint16 port;
-} DirectTCPAddr;
+/* The address to connect to. These are commonly seen in arrays
+ * terminated by a family of 0. */
+#define DirectTCPAddr sockaddr_union
 
 #endif /* DIRECTTCP_H */