Branch data Line data Source code
1 : : /*
2 : : * Copyright 2006-2009 Savarese Software Research Corporation
3 : : *
4 : : * Licensed under the Apache License, Version 2.0 (the "License");
5 : : * you may not use this file except in compliance with the License.
6 : : * You may obtain a copy of the License at
7 : : *
8 : : * https://www.savarese.com/software/ApacheLicense-2.0
9 : : *
10 : : * Unless required by applicable law or agreed to in writing, software
11 : : * distributed under the License is distributed on an "AS IS" BASIS,
12 : : * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 : : * See the License for the specific language governing permissions and
14 : : * limitations under the License.
15 : : */
16 : :
17 : : /**
18 : : * @file
19 : : * This header defines types used by the GroupSession messaging protocol.
20 : : */
21 : :
22 : : #ifndef __SSRC_WSPR_GROUP_SESSION_TYPES_H
23 : : #define __SSRC_WSPR_GROUP_SESSION_TYPES_H
24 : :
25 : : #include <ssrc/wispers/types.h>
26 : : #include <ssrc/wispers/database/types.h>
27 : :
28 : : __BEGIN_NS_SSRC_WSPR_GROUP_SESSION
29 : :
30 : : #define __WSPR_GROUP_SESSION_MEMBERS \
31 : : ((gsid_type, gsid)) \
32 : : ((sec_type, created)) \
33 : : ((sec_type, expires)) \
34 : : ((string, type)) \
35 : : ((string, group)) \
36 : : ((string, name)) \
37 : : ((unsigned int, max_observers))
38 : :
39 [ + - + - : 202 : WSPR_DB_ROW_WITH_KEY(GroupSession,
+ - + - ]
40 [ + - + - : 160 : __WSPR_GROUP_SESSION_MEMBERS, (0))
+ - + - +
- + - + -
+ - + - +
- + - + -
+ - + - +
- + - + -
+ - - - -
- - - + -
# # # # #
# # # # #
# # + - ]
41 : :
42 : : #define __WSPR_GROUP_SESSION_RESERVATION_MEMBERS \
43 : : __WSPR_GROUP_SESSION_MEMBERS \
44 : : ((uid_type, creator_uid)) \
45 : : ((sec_type, gs_lifetime))
46 : :
47 [ + - + - : 24 : WSPR_DB_ROW_WITH_KEY(Reservation,
+ - + - ]
48 [ + - + - : 362 : __WSPR_GROUP_SESSION_RESERVATION_MEMBERS, (0))
+ - + - +
- + - + -
+ - + - +
- + - + -
+ - + - +
- + - + -
+ - + - +
- + - + +
+ + + + +
+ + - + -
+ - + - +
- + - + -
+ - + - +
- + - ]
49 : :
50 : : //#undef __WSPR_GROUP_SESSION_MEMBERS
51 : : //#undef __WSPR_GROUP_SESSION_RESERVATION_MEMBERS
52 : :
53 : : WSPR_DB_ROW_WITH_KEY(Member,
54 : : ((gsid_type, gsid))
55 [ + - + - : 362 : ((uid_type, uid)), (0)(1))
# # # # #
# # ]
56 : :
57 : : __END_NS_SSRC_WSPR_GROUP_SESSION
58 : :
59 : : #endif
|