4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
32 #include <user_request.h>
35 #include <TapiCommon.h>
37 #include "tel_cs_conn.h"
39 #include "ts_utility.h"
40 #include "ts_common.h"
41 #include "ts_svr_req.h"
44 void dbus_request_omadm(struct custom_data *ctx, TcorePlugin *plugin, int tapi_service_function, GArray* in_param1,
45 GArray* in_param2, GArray* in_param3, GArray* in_param4, GArray** out_param1, GArray** out_param2,
46 GArray** out_param3, GArray** out_param4, GError** error)
48 int api_err = TAPI_API_SUCCESS;
50 switch (tapi_service_function) {
51 case TAPI_CS_OMADM_PRL_SIZE_GET:
52 case TAPI_CS_OMADM_MODEL_NAME_GET:
53 case TAPI_CS_OMADM_OEM_NAME_GET:
54 case TAPI_CS_OMADM_SW_VER_GET:
55 case TAPI_CS_OMADM_PRL_READ_GET:
56 case TAPI_CS_OMADM_PRL_WRITE_SET:
58 api_err = TAPI_API_NOT_SUPPORTED;
62 g_array_append_vals(*out_param1, &api_err, sizeof(int));
65 TReturn dbus_response_omadm(struct custom_data *ctx, UserRequest *ur, const char *appname,
66 enum tcore_response_command command, unsigned int data_len, const void *data)
68 dbg("command = 0x%x", command);
78 TReturn dbus_notification_omadm(struct custom_data *ctx, CoreObject *source, enum tcore_notification_command command,
79 unsigned int data_len, const void *data)
81 dbg("command = 0x%x", command);