]> git.ipfire.org Git - thirdparty/kmod.git/blob - tools/kmod.h
libkmod: fix use of strcpy
[thirdparty/kmod.git] / tools / kmod.h
1 /*
2 * kmod - one tool to rule them all
3 *
4 * Copyright (C) 2011-2013 ProFUSION embedded systems
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #pragma once
21
22 #include <shared/macro.h>
23
24 struct kmod_cmd {
25 const char *name;
26 int (*cmd)(int argc, char *argv[]);
27 const char *help;
28 };
29
30 extern const struct kmod_cmd kmod_cmd_compat_lsmod;
31 extern const struct kmod_cmd kmod_cmd_compat_rmmod;
32 extern const struct kmod_cmd kmod_cmd_compat_insmod;
33 extern const struct kmod_cmd kmod_cmd_compat_modinfo;
34 extern const struct kmod_cmd kmod_cmd_compat_modprobe;
35 extern const struct kmod_cmd kmod_cmd_compat_depmod;
36
37 extern const struct kmod_cmd kmod_cmd_insert;
38 extern const struct kmod_cmd kmod_cmd_list;
39 extern const struct kmod_cmd kmod_cmd_static_nodes;
40 extern const struct kmod_cmd kmod_cmd_remove;
41
42 #include "log.h"