diff options
Diffstat (limited to 'server/thumb-server.c')
-rwxr-xr-x | server/thumb-server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/thumb-server.c b/server/thumb-server.c index 3b79684..9e7c1e1 100755 --- a/server/thumb-server.c +++ b/server/thumb-server.c @@ -27,6 +27,7 @@ #include <pthread.h> #include <heynoti.h> +#include <vconf.h> //#include <signal.h> //#include <glib-unix.h> @@ -78,6 +79,11 @@ int main() } } + /* Set VCONFKEY_SYSMAN_MMC_FORMAT callback to get noti for SD card format */ + err = vconf_notify_key_changed(VCONFKEY_SYSMAN_MMC_FORMAT, (vconf_callback_fn) _thumb_daemon_vconf_cb, NULL); + if (err == -1) + thumb_err("vconf_notify_key_changed %s fails", VCONFKEY_SYSMAN_MMC_FORMAT); + /* Create and bind new UDP socket */ if (!_thumb_server_prepare_socket(&sockfd)) { thumb_err("Failed to create socket\n"); |