82289ef8229d0b46adb14146821ab325c979a1f9
[apps/home/call-setting.git] / include / cst-tapi-request.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
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
7   *
8   * http://www.tizenopensource.org/license
9   *
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.
15   */
16
17 #ifndef _CISS_TEL_REQUEST_H_
18 #define _CISS_TEL_REQUEST_H_
19 #include "cst-common.h"
20 #include <Eina.h>
21 #include <Elementary.h>
22
23 typedef void (*SsReqCb)(int call_type, int flavour, Eina_Bool ss_state, char *number, int error, int req_action, void *);
24
25 typedef struct {
26         int call_type;
27         int flavour;
28         int action;
29         int req_id;
30         Eina_Bool is_requesting;
31         Eina_Bool is_canceled;
32         Eina_Bool original_state;
33         SsReqCb func;
34         void *data;
35         char number[CST_MAX_PHONE_NUMBER_LEN];
36 } CallSettingReq_t;
37
38 void _cst_add_ss_request(Eina_List **queue, int action_type, int call_type, int flavour, char *number, void *func, void *data);
39 void _cst_cancel_all_ss_request(void *data);
40 void _cst_ciss_deregister_tel_event(void *data);
41 void _cst_ciss_register_tel_event(void *data);
42
43 #endif