2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FBaseDataType.h
20 * @brief This is the header file for the data types.
22 * This header file defines the data types.
24 #ifndef _FBASE_DATA_TYPE_H_
25 #define _FBASE_DATA_TYPE_H_
29 * @c byte is an @c unsigned @c char datatype.
32 typedef unsigned char byte;
35 * @c result is an @c unsigned @c long type and indicates the result of the method execution.
38 typedef unsigned long result;
41 namespace Tizen { namespace Base
46 typedef Tizen::Base::String UserId;
47 typedef Tizen::Base::String LoginId;
51 * The invocation ID is returned when a request is sent.
54 typedef long RequestId;
55 #define INVALID_REQUEST_ID -1
58 // Macro to get the value in byte
59 #define GET_MASK(val, pos, msk) (((val) & ((msk) << (pos))) >> (pos))
60 // Macro to put the value in byte
61 #define PUT_MASK(var, val, pos) ((var) | ((val) << (pos)))
66 #define INVALID_HANDLE -1
74 #define INFINITE 0xFFFFFFFF
95 #endif // _FBASE_DATA_TYPE_H_