Savarese Software Research Corporation
group_session/types.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2006-2009 Savarese Software Research Corporation
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     https://www.savarese.com/software/ApacheLicense-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00022 #ifndef __SSRC_WSPR_GROUP_SESSION_TYPES_H
00023 #define __SSRC_WSPR_GROUP_SESSION_TYPES_H
00024 
00025 #include <ssrc/wispers/types.h>
00026 #include <ssrc/wispers/database/types.h>
00027 
00028 __BEGIN_NS_SSRC_WSPR_GROUP_SESSION
00029 
00030 #define __WSPR_GROUP_SESSION_MEMBERS \
00031   ((gsid_type, gsid))                \
00032   ((sec_type, created))              \
00033   ((sec_type, expires))              \
00034   ((string, type))                   \
00035   ((string, group))                  \
00036   ((string, name))                   \
00037   ((unsigned int, max_observers))
00038 
00039 WSPR_DB_ROW_WITH_KEY(GroupSession,
00040                      __WSPR_GROUP_SESSION_MEMBERS, (0))
00041 
00042 #define __WSPR_GROUP_SESSION_RESERVATION_MEMBERS \
00043   __WSPR_GROUP_SESSION_MEMBERS \
00044   ((uid_type, creator_uid)) \
00045   ((sec_type, gs_lifetime))
00046 
00047 WSPR_DB_ROW_WITH_KEY(Reservation,
00048                     __WSPR_GROUP_SESSION_RESERVATION_MEMBERS, (0))
00049 
00050 //#undef __WSPR_GROUP_SESSION_MEMBERS
00051 //#undef __WSPR_GROUP_SESSION_RESERVATION_MEMBERS
00052 
00053 WSPR_DB_ROW_WITH_KEY(Member,
00054                     ((gsid_type, gsid))
00055                     ((uid_type, uid)), (0)(1))
00056 
00057 __END_NS_SSRC_WSPR_GROUP_SESSION
00058 
00059 #endif

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.