]> rtime.felk.cvut.cz Git - orte.git/blob - orte/include/jorte/jorte_typedefs_defines.h
Merge branch 'master' of https://github.com/Vajnar/orte
[orte.git] / orte / include / jorte / jorte_typedefs_defines.h
1 /* typedefs_defines_jorte.h */
2
3 /**
4   * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
5   * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
6   * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
7   * @author dedication to Kj
8   * @version 0.1
9   *
10   *
11   * This program is free software; you can redistribute it and/or modify
12   * it under the terms of the GNU General Public License as published by
13   * the Free Software Foundation; either version 2 of the License, or
14   * (at your option) any later version.
15   *
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19   * GNU General Public License for more details.
20   *
21   */
22
23
24 typedef struct {
25   JavaVM        *jvm;
26   jobject        obj;
27   jobject        rinfo;
28   jobject        msg;
29   jobject        obj_buf; // byte buffer object
30   void          *info_buf; // RecvInfo buffer pointer
31   jmethodID  mid_read;
32   jmethodID  mid_callback;
33   jmethodID  mid_order;
34   jobject    obj_BO_BE;
35   jobject    obj_BO_LE;
36   CDR_Endianness cur_endian;
37 } JORTECallbackContext_t;
38
39
40 typedef struct {
41   JavaVM        *jvm;
42   jobject        obj_de; // domain events
43 } JORTEDomainEventsContext_t;
44
45
46 typedef enum {
47   ON_REG_FAIL       = 1,
48   ON_MGR_NEW        = 2,
49   ON_MGR_DELETE     = 3,
50   ON_APP_REMOTE_NEW = 4,
51   ON_APP_DELETE     = 5,
52   ON_PUB_REMOTE     = 6,
53   ON_PUB_DELETE     = 7,
54   ON_SUB_REMOTE     = 8,
55   ON_SUB_DELETE     = 9
56 } JORTEDomainEvents_t;