upload tizen1.0 source
[pkgs/o/oma-ds-service.git] / include / ServiceAdapter / SA_Session_Internal.h
1 /*
2  * oma-ds-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: JuHak Park <juhaki.park@samsung.com>,
7  *          JuneHyuk Lee <junhyuk7.lee@samsung.com>,
8  *          SunBong Ha <sunbong.ha@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25
26
27
28 /*
29  * For any sort of issue you concern as to this software,
30  * you may use following point of contact.
31  * All resources contributed on this software
32  * are orinigally written by S-Core Inc., a member of Samsung Group.
33  *
34  * SeongWon Shim <seongwon.shim@samsung.com>
35  */
36
37 /**
38  *   @SA_Session_Internal.h
39  *   @version                                                                   0.1
40  *   @brief                                                                             This file is the header file of session structure is defined
41  *                                                                                                      Session, PendingStatus
42  */
43
44 #ifndef SA_SESSION_INTERNAL_H_
45 #define SA_SESSION_INTERNAL_H_
46
47 #include "ServiceAdapter/SA_Define.h"
48
49 struct Session {
50         ProtocolVersion protocolVersion;
51         ProtocolType protocolType;
52
53         char *sessionID;
54         unsigned int msgID;
55         unsigned int lastRecievedMsgID;
56         unsigned int cmdID ;
57         int isSendingfinal;
58         int isReceivingFinal;
59
60         GList *status;                                                                  /*status to return to server*/
61         GList *tempStatus;                                                      /*temp status for sync add, replace, delete command(it doesnot have data element value)*/
62         Location *target;
63         Location *source;
64         Location *orgTarget;
65
66         unsigned int sourceMaxMsgSize;
67         unsigned int sourceMaxObjSize;
68
69         unsigned int targetMaxMsgSize;
70         unsigned int targetMaxObjSize;
71
72         Cred *cred;                                                                             /*account info*/
73         Chal *chal;                                                                             /*chal from server*/
74
75         DevInf *devInf;                                                                 /*client devinf*/
76         DevInf *remoteDevInf;                                           /*server devinf*/
77
78         PkgStatus pkgStatus;                                                    /*for status*/
79
80         Command *pLargeObjCmd;                                  /*for incomming large Command*/
81
82         GList *mapCommand       ;                                               /*containing map command that has sent to server(this is used to for delete map item from mapping table)*/
83
84         GList *alertCommand;                                            /*containing alert command that have to send to server*/
85
86         GList *resultsCommand;                                  /*containing results command*/
87
88         PendingStatus *largeObj;                                /*for outgoing large command*/
89
90
91         int hasOpend;
92         unsigned int NACI_sessionID;
93
94         int accountId;
95
96 };
97
98
99 struct PendingStatus {
100         unsigned int cmdID;
101         unsigned int msgID;
102 };
103 #endif /* SA_SESSION_INTERNAL_H_ */