wiki:µRoarD/Depends

Version 4 (modified by ph3-der-loewe, 11 years ago) (diff)

Added all missing data

Depends of µRoarD

This is a list of dependencies used by µRoarD. This list is of most interest if you plan to use µRoarD as library on a limited device.

In the following tables R/O means: R = Required, O = Optional.

Constants

µRoarD depends on lots of constants exported by µRoar as included in muroar.h.

Variables

General system interface

Symbol R/O Used by Comment
errno O MUROAR_FEATURE_SOCKET_UNIX Used for testing stalled sockets

Functions

Process Management

Symbol R/O Used by Comment
exit O MUROAR_FEATURE_DAEMONIZE -
fork O MUROAR_FEATURE_DAEMONIZE -
signal O MUROAR_FEATURE_SIGNALS -
setsid O MUROAR_FEATURE_DAEMONIZE -

Memory/String?

Symbol R/O Used by Comment
malloc R - Only used to get buffers of fixed size(muroard_g_abuffer_size)
free R - Used to free malloc()ed buffers
memcpy R core, MUROAR_FEATURE_CMD_CAPS, MUROAR_FEATURE_SOCKET_INET -
memset R core, driver_ao, MUROAR_FEATURE_CMD_GET_CLIENT, MUROAR_FEATURE_OPTIMIZE -
strncpy O MUROAR_FEATURE_SOCKET_UNIX -
atoi O MUROAR_FEATURE_ARGV -

FileSystem?

Symbol R/O Used by Comment
unlink O MUROAR_FEATURE_SOCKET_UNIX -
umask O MUROAR_DEFAULT_LISTEN_CHMOD MUROAR_DEFAULT_LISTEN_CHMOD is only used for UNIX sockets.

SysIO

Symbol R/O Used by Comment
close R/O (core), driver_oss, DRIVER_USE_SYSIO, MUROAR_FEATURE_DAEMONIZE Required on all but win32. win32 uses closesocket() see below.
read R/O core on non win32 On win32 recv() is used.
write R/O core in non win32, DRIVER_USE_SYSIO On win32 send() is used for network writes.
select R core -
fchmod O MUROAR_DEFAULT_LISTEN_CHMOD MUROAR_DEFAULT_LISTEN_CHMOD is only used for UNIX sockets.
fcntl (R) core on non win32 Used to set non-blocking

StdIO

Symbol R/O Used by Comment
printf O MUROARD_FEATURE_HELP_TEXT -

Network

Symbol R/O Used by Comment
closesocket R/O core on win32 Only used on win32. close() on all other systems.
socket O MUROAR_FEATURE_SOCKET_UNIX, MUROAR_FEATURE_SOCKET_INET only useful with MUROAR_FEATURE_SOCKET_LISTEN
listen O MUROAR_FEATURE_SOCKET_LISTEN -
connect O MUROAR_FEATURE_SOCKET_UNIX Used for testing stalled sockets
accept O MUROAR_FEATURE_SOCKET_LISTEN -
bind O MUROAR_FEATURE_SOCKET_UNIX, MUROAR_FEATURE_SOCKET_INET only useful with MUROAR_FEATURE_SOCKET_LISTEN
recvmsg O MUROAR_FEATURE_CMD_PASSFH -
recv (R) core on win32 -
send (R) core on win32 -
gethostbyname O MUROAR_FEATURE_SOCKET_INET -

Driver

Symbol R/O Used by Comment
muroard_driver_init R core Opening sound device
muroard_driver_free R core Closing sound device
muroard_driver_write R core Write data to sound device