summaryrefslogtreecommitdiff
path: root/common/include/ivug-callback.h
blob: fac346c054a15b0f58092bcb39e2f532d2aec33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *	  http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#ifndef __IVUG_CALLBACK_H__
#define __IVUG_CALLBACK_H__

typedef void (*callback_func_t) (void *data1, void *data2, void *data3, void *user_data);

typedef struct {
	callback_func_t CBFunc;
	void *data;
}callback_handle_t;

callback_handle_t * ivug_callback_register(void);

void ivug_callback_set_callback(callback_handle_t *handle, callback_func_t callback, void *data);

void ivug_callback_call(callback_handle_t *handle, void *data1, void *data2, void *data3);

void ivug_callback_unregister(callback_handle_t *handle);

#endif				// __IVUG_CALLBACK_H__
//! End of a file