File: cmd_enum.h

package info (click to toggle)
lvm2 2.03.31-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,920 kB
  • sloc: ansic: 180,675; sh: 42,231; python: 6,554; makefile: 2,079; cpp: 1,258; ruby: 66; awk: 20
file content (19 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _CMD_ENUM_H
#define _CMD_ENUM_H

/*
 * include/cmds.h is generated by the Makefile.  For each command definition
 * in command-lines.in, cmds.h contains:
 * cmd(foo_CMD, foo)
 *
 * This header adds each of the foo_CMD's into an enum, so there's
 * a unique integer identifier for each command definition.
 */

enum {
#define cmd(a, b) a ,
#include "include/cmds.h"
#undef cmd
};

#endif