update for beta release
[framework/uifw/e17.git] / src / modules / wizard / page_140.c
1 /* Setup if we need mixer? */
2 #include "e.h"
3 #include "e_mod_main.h"
4
5 EAPI int
6 wizard_page_init(E_Wizard_Page *pg __UNUSED__)
7 {
8    return 1;
9 }
10
11 EAPI int
12 wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
13 {
14    return 1;
15 }
16
17 EAPI int
18 wizard_page_show(E_Wizard_Page *pg __UNUSED__)
19 {
20    int hav_mixer = 0;
21 #ifdef HAVE_ALSA
22    hav_mixer = 1;
23 #endif
24    if (!hav_mixer)
25      {
26         E_Config_Module *em;
27         Eina_List *l;
28         
29         EINA_LIST_FOREACH(e_config->modules, l, em)
30           {
31              if (!em->name) continue;
32              if (!strcmp(em->name, "mixer"))
33                {
34                   e_config->modules = eina_list_remove_list
35                      (e_config->modules, l);
36                   if (em->name) eina_stringshare_del(em->name);
37                   free(em);
38                   break;
39                }
40           }
41         e_config_save_queue();
42      }
43    return 0; /* 1 == show ui, and wait for user, 0 == just continue */
44 }
45
46 EAPI int
47 wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
48 {
49    return 1;
50 }
51
52 EAPI int
53 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
54 {
55    return 1;
56 }