From 0c79e036b012c59fc2700de68d015ca5a3b71070 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 24 Jan 2012 08:12:41 +0100 Subject: [PATCH] Add missing lldpctl.h header file --- src/lldpctl.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/lldpctl.h diff --git a/src/lldpctl.h b/src/lldpctl.h new file mode 100644 index 00000000..3bf78c25 --- /dev/null +++ b/src/lldpctl.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2012 Vincent Bernat + * + * 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 -- 2.39.5