Tizen 2.1 base
[sdk/emulator/qemu.git] / tizen / src / utils.h
1 /*
2  * Emulator
3  *
4  * Copyright (C) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: 
7  * DoHyung Hong <don.hong@samsung.com>
8  * SeokYeon Hwang <syeon.hwang@samsung.com>
9  * Hyunjun Son <hj79.son@samsung.com>
10  * SangJin Kim <sangjin3.kim@samsung.com>
11  * MunKyu Im <munkyu.im@samsung.com>
12  * KiTae Kim <kt920.kim@samsung.com>
13  * JinHyung Jo <jinhyung.jo@samsung.com>
14  * SungMin Ha <sungmin82.ha@samsung.com>
15  * JiHye Kim <jihye1128.kim@samsung.com>
16  * GiWoong Kim <giwoong.kim@samsung.com>
17  * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
18  * DongKyun Yun <dk77.yun@samsung.com>
19  *
20  * This program is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU General Public License
22  * as published by the Free Software Foundation; either version 2
23  * of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28  * GNU General Public License for more details.
29  *
30  * You should have received a copy of the GNU General Public License
31  * along with this program; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
33  *
34  * Contributors:
35  * - S-Core Co., Ltd
36  *
37  */
38
39
40
41 #ifndef __UTILS_H__
42 #define __UTILS_H__
43 #include "fileio.h"
44 #include "vt_utils.h"
45 GHashTable *window_hash_init (void);
46 void add_window (GtkWidget * win, gint id);
47 void raise_window (GtkWidget * win);
48 void remove_window (gint id);
49 GtkWidget *get_window (gint id);
50 void window_hash_destroy (void);
51 void add_widget (gint window_id, gchar * widget_name, GtkWidget * widget);
52 GtkWidget *get_widget (gint window_id, gchar * widget_name);
53
54 int set_config_type(gchar *filepath, const gchar *group, const gchar *field, const int type);
55 int del_config_key(gchar *filepath, const gchar *group, const gchar *field);
56 int del_config_group(gchar *filepath, const gchar *group);
57 int set_config_value(gchar *filepath, const gchar *group, const gchar *field, const gchar *value);
58 int get_config_type(gchar *filepath, const gchar *group, const gchar *field);
59 char *get_config_value(gchar *filepath, const gchar *group, const gchar *field);
60 char *get_group_name(gchar *filepath, const gchar *field);
61 gboolean is_group(const gchar *target_name);
62
63 #ifndef _WIN32
64 void strlwr (char *string);
65 #endif
66
67 #endif