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_
28 * @c byte is an @c unsigned @c char datatype.
31 typedef unsigned char byte;
34 * @c result is an @c unsigned @c long type and indicates the result of the method execution.
37 typedef unsigned long result;
40 namespace Tizen { namespace Base
45 typedef Tizen::Base::String UserId;
46 typedef Tizen::Base::String LoginId;
50 * The invocation ID is returned when a request is sent.
53 typedef long RequestId;
54 #define INVALID_REQUEST_ID -1
57 // Macro to get the value in byte
58 #define GET_MASK(val, pos, msk) (((val) & ((msk) << (pos))) >> (pos))
59 // Macro to put the value in byte
60 #define PUT_MASK(var, val, pos) ((var) | ((val) << (pos)))
65 #define INVALID_HANDLE -1
73 #define INFINITE 0xFFFFFFFF
94 #endif // _FBASE_DATA_TYPE_H_