summaryrefslogtreecommitdiff
path: root/src/libnml/nml/cmd_msg.hh
blob: c3a2d97a457edfbc6ec072068d06c2e0f84ecb15 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/********************************************************************
* Description: cmd_msg.hh
*
*   Derived from a work by Fred Proctor & Will Shackleford
*
* Author:
* License: LGPL Version 2
* System: Linux
*    
* Copyright (c) 2004 All rights reserved.
*
* Last change: 
********************************************************************/
#ifndef RCS_CMD_HH
#define RCS_CMD_HH

#include "nml.hh"
#include "nmlmsg.hh"

class RCS_CMD_MSG:public NMLmsg {
  public:
    RCS_CMD_MSG(NMLTYPE t, long sz);
    int serial_number;
};

extern int RCS_CMD_MSG_format(NMLTYPE, void *, CMS *);

class RCS_CMD_CHANNEL:public NML {
  public:
    RCS_CMD_CHANNEL(NML_FORMAT_PTR, const char *, const char *, const char *,
	int set_to_server = 0);
     ~RCS_CMD_CHANNEL();
    RCS_CMD_MSG *get_address() {
	return ((RCS_CMD_MSG *) NML::get_address());
    };
};

enum RCS_GENERIC_CMD_ID {
    GENERIC_INIT,
    GENERIC_HALT
};

#define RCS_GENERIC_CMD_TYPE    ((NMLTYPE) 1000000)

class RCS_GENERIC_CMD:public RCS_CMD_MSG {
  public:
    RCS_GENERIC_CMD();
    void update(CMS *);
    int gen_id;
};

#endif