Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spr0cketeer
Icecast-Server
Commits
496e1a02
Commit
496e1a02
authored
Nov 01, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Make use of igloo_initialize()
parent
42889cda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/main.c
src/main.c
+9
-8
No files found.
src/main.c
View file @
496e1a02
...
@@ -44,6 +44,8 @@
...
@@ -44,6 +44,8 @@
#include <sys/utsname.h>
#include <sys/utsname.h>
#endif
#endif
#include <igloo/igloo.h>
#include <igloo/ro.h>
#include <igloo/thread.h>
#include <igloo/thread.h>
#include <igloo/sock.h>
#include <igloo/sock.h>
#include <igloo/resolver.h>
#include <igloo/resolver.h>
...
@@ -88,6 +90,8 @@
...
@@ -88,6 +90,8 @@
static
int
background
;
static
int
background
;
static
char
*
pidfile
=
NULL
;
static
char
*
pidfile
=
NULL
;
static
igloo_ro_t
icecast_igloo_instance
;
static
void
pidfile_update
(
ice_config_t
*
config
,
int
always_try
);
static
void
pidfile_update
(
ice_config_t
*
config
,
int
always_try
);
static
void
_fatal_error
(
const
char
*
perr
)
static
void
_fatal_error
(
const
char
*
perr
)
...
@@ -142,15 +146,14 @@ static refobject_t fastevent_reg;
...
@@ -142,15 +146,14 @@ static refobject_t fastevent_reg;
static
void
initialize_subsystems
(
void
)
static
void
initialize_subsystems
(
void
)
{
{
igloo_log_initialize
();
icecast_igloo_instance
=
igloo_initialize
();
igloo_thread_initialize
();
/* FIXME: Check for igloo_RO_IS_NULL(icecast_igloo_instance) */
global_initialize
();
global_initialize
();
#ifndef FASTEVENT_ENABLED
#ifndef FASTEVENT_ENABLED
fastevent_initialize
();
fastevent_initialize
();
fastevent_reg
=
fastevent_register
(
FASTEVENT_TYPE_SLOWEVENT
,
__fastevent_cb
,
NULL
,
NULL
);
fastevent_reg
=
fastevent_register
(
FASTEVENT_TYPE_SLOWEVENT
,
__fastevent_cb
,
NULL
,
NULL
);
#endif
#endif
igloo_sock_initialize
();
igloo_resolver_initialize
();
config_initialize
();
config_initialize
();
tls_initialize
();
tls_initialize
();
connection_initialize
();
connection_initialize
();
...
@@ -175,14 +178,11 @@ static void shutdown_subsystems(void)
...
@@ -175,14 +178,11 @@ static void shutdown_subsystems(void)
connection_shutdown
();
connection_shutdown
();
tls_shutdown
();
tls_shutdown
();
config_shutdown
();
config_shutdown
();
igloo_resolver_shutdown
();
igloo_sock_shutdown
();
#ifndef FASTEVENT_ENABLED
#ifndef FASTEVENT_ENABLED
refobject_unref
(
fastevent_reg
);
refobject_unref
(
fastevent_reg
);
fastevent_shutdown
();
fastevent_shutdown
();
#endif
#endif
global_shutdown
();
global_shutdown
();
igloo_thread_shutdown
();
#ifdef HAVE_CURL
#ifdef HAVE_CURL
icecast_curl_shutdown
();
icecast_curl_shutdown
();
...
@@ -190,8 +190,9 @@ static void shutdown_subsystems(void)
...
@@ -190,8 +190,9 @@ static void shutdown_subsystems(void)
/* Now that these are done, we can stop the loggers. */
/* Now that these are done, we can stop the loggers. */
_stop_logging
();
_stop_logging
();
igloo_log_shutdown
();
xslt_shutdown
();
xslt_shutdown
();
igloo_ro_unref
(
icecast_igloo_instance
);
}
}
void
main_config_reload
(
ice_config_t
*
config
)
void
main_config_reload
(
ice_config_t
*
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment