2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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.
17 #include "utc_msg_get_message_type.h"
19 static MSG_HANDLE_T msgHandle = NULL;
20 msg_message_t msgInfo;
24 MSG_ERROR_T err = MSG_SUCCESS;
26 err = msg_open_msg_handle(&msgHandle);
27 if (err != MSG_SUCCESS)
33 msgInfo = msg_new_message();
37 msg_close_msg_handle(&msgHandle);
40 void utc_msg_get_message_type_001()
42 MSG_ERROR_T err = MSG_SUCCESS;
44 err = msg_get_message_type(msgInfo);
45 if (err < MSG_SUCCESS)
54 void utc_msg_get_message_type_002()
56 MSG_ERROR_T err = MSG_SUCCESS;
58 err = msg_get_message_type(NULL);
59 if (err < MSG_SUCCESS)