]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Add missing lldpctl.h header file
authorVincent Bernat <bernat@luffy.cx>
Tue, 24 Jan 2012 07:12:41 +0000 (08:12 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 24 Jan 2012 07:12:41 +0000 (08:12 +0100)
src/lldpctl.h [new file with mode: 0644]

diff --git a/src/lldpctl.h b/src/lldpctl.h
new file mode 100644 (file)
index 0000000..3bf78c2
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Vincent Bernat <bernat@luffy.cx>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LLDPCTL_H
+#define _LLDPCTL_H
+
+#include "lldpd.h"
+#include "writer.h"
+
+/* lldpctl.c */
+struct lldpd_interface_list *get_interfaces(int);
+int  get_port(int, struct lldpd_port *, char *);
+struct lldpd_hardware *get_interface(int, char *);
+
+/* display.c */
+void display_interfaces(int, const char *, int, char **);
+
+#endif