generator: Put all the daemon procedure numbers (proc_nr) into a single table.

Daemon 'proc_nr's have to be assigned monotonically and uniquely to
each daemon function.  However in practice it can be difficult to work
out which is the next free proc_nr.  Placing all of them into a single
table in a new file (proc_nr.ml) should make this easier.
This commit is contained in:
Richard W.M. Jones
2017-02-21 10:58:41 +00:00
parent cf3001c2ed
commit 3a4a491712
16 changed files with 583 additions and 512 deletions

View File

@@ -39,7 +39,6 @@ let daemon_functions = [
{ defaults with
name = "debug"; added = (1, 0, 11);
style = RString "result", [String "subcmd"; StringList "extraargs"], [];
proc_nr = Some 76;
visibility = VDebug;
shortdesc = "debugging and internals";
longdesc = "\
@@ -54,7 +53,6 @@ to find out what you can do." };
{ defaults with
name = "debug_upload"; added = (1, 3, 5);
style = RErr, [FileIn "filename"; String "tmpname"; Int "mode"], [];
proc_nr = Some 241;
visibility = VDebug;
cancellable = true;
shortdesc = "upload a file to the appliance (internal use only)";