diff options
author | Max Kellermann <max@duempel.org> | 2008-11-27 19:34:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-27 19:34:54 +0100 |
commit | ced4abcd642e3bae76e0feed07edfab163956c48 (patch) | |
tree | 570ddcfd2e26c863a37574cdbd5b45db78166d27 /src/main.c | |
parent | bd0653f440adf736427d9cc9e3565489cc9a1cde (diff) | |
download | mpd-ced4abcd642e3bae76e0feed07edfab163956c48.tar.gz mpd-ced4abcd642e3bae76e0feed07edfab163956c48.tar.xz mpd-ced4abcd642e3bae76e0feed07edfab163956c48.zip |
update: added update_global_init() and update_global_finish()
Those two functions are called when MPD starts and exits. It allows
the update library to perform global initialization and
deinitialization. The implementations are currently empty.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 972aa32bb..538b559ee 100644 --- a/src/main.c +++ b/src/main.c @@ -416,6 +416,7 @@ int main(int argc, char *argv[]) initPermissions(); initPlaylist(); decoder_plugin_init_all(); + update_global_init(); init_main_notify(); @@ -497,6 +498,7 @@ int main(int argc, char *argv[]) dc_deinit(); pc_deinit(); command_finish(); + update_global_finish(); decoder_plugin_deinit_all(); music_pipe_free(); cleanUpPidFile(); |