lintian doesn't like orphan packages with uploaders...
[debian/amanda] / common-src / directtcp.h
index 91fb19df1a700b29fbc17983e1b7eefd6861dd61..6b01c38eb2d4a19be0d375643207a2841f808b56 100644 (file)
@@ -1,10 +1,11 @@
 /*
  * 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
- * by the Free Software Foundation.
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 #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 */