2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FBaseDataType.h
19 * @brief This is the header file for the data types.
21 * This header file defines the data types.
23 #ifndef _FBASE_DATA_TYPE_H_
24 #define _FBASE_DATA_TYPE_H_
27 * @c byte is an @c unsigned @c char datatype.
30 typedef unsigned char byte;
33 * @c result is an @c unsigned @c long type and indicates the result of the method execution.
36 typedef unsigned long result;
38 namespace Tizen { namespace Base
44 * The user ID for authentication
47 typedef Tizen::Base::String UserId;
50 * The user ID for login
53 typedef Tizen::Base::String LoginId;
56 * The invocation ID is returned when a request is sent.
59 typedef long RequestId;
61 #define INVALID_REQUEST_ID -1
63 // Macro to get the value in byte
64 #define GET_MASK(val, pos, msk) (((val) & ((msk) << (pos))) >> (pos))
65 // Macro to put the value in byte
66 #define PUT_MASK(var, val, pos) ((var) | ((val) << (pos)))
70 #define INVALID_HANDLE -1
78 #define INFINITE 0xFFFFFFFF
98 #endif // _FBASE_DATA_TYPE_H_