summaryrefslogtreecommitdiff
path: root/keyctl.h
blob: e06133445d8ab6bdf7dbf71f98845ff375a64df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* keyctl program definitions
 *
 * Copyright (C) 2019 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */

struct command {
	void (*action)(int argc, char *argv[]) __attribute__((noreturn));
	const char	*name;
	const char	*format;
};

#define nr __attribute__((noreturn))

/*
 * keyctl.c
 */
extern nr void do_command(int, char **, const struct command *, const char *);
extern nr void error(const char *);

/*
 * keyctl_testing.c
 */
extern nr void act_keyctl_test(int, char *[]);