From: Vincent Bernat Date: Tue, 24 Jan 2012 07:12:41 +0000 (+0100) Subject: Add missing lldpctl.h header file X-Git-Tag: 0.6.0~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c79e036b012c59fc2700de68d015ca5a3b71070;p=thirdparty%2Flldpd.git Add missing lldpctl.h header file --- 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