PulseAudio 17.0
util.h File Reference

Assorted utility functions. More...

Go to the source code of this file.

Functions

char * pa_get_user_name (char *s, size_t l)
 Return the current username in the specified string buffer.
char * pa_get_host_name (char *s, size_t l)
 Return the current hostname in the specified buffer.
char * pa_get_fqdn (char *s, size_t l)
 Return the fully qualified domain name in s.
char * pa_get_home_dir (char *s, size_t l)
 Return the home directory of the current user.
char * pa_get_binary_name (char *s, size_t l)
 Return the binary file name of the current process.
char * pa_path_get_filename (const char *p)
 Return a pointer to the filename inside a path (which is the last component).
int pa_msleep (unsigned long t)
 Wait t milliseconds.
int pa_thread_make_realtime (int rtprio)
 Make the calling thread realtime if we can.

Detailed Description

Assorted utility functions.

Function Documentation

◆ pa_get_binary_name()

char * pa_get_binary_name ( char * s,
size_t l )

Return the binary file name of the current process.

This is not supported on all architectures, in which case NULL is returned.

References pa_get_binary_name().

Referenced by pa_get_binary_name().

◆ pa_get_fqdn()

char * pa_get_fqdn ( char * s,
size_t l )

Return the fully qualified domain name in s.

References pa_get_fqdn().

Referenced by pa_get_fqdn().

◆ pa_get_home_dir()

char * pa_get_home_dir ( char * s,
size_t l )

Return the home directory of the current user.

References pa_get_home_dir().

Referenced by pa_get_home_dir().

◆ pa_get_host_name()

char * pa_get_host_name ( char * s,
size_t l )

Return the current hostname in the specified buffer.

References pa_get_host_name().

Referenced by pa_get_host_name().

◆ pa_get_user_name()

char * pa_get_user_name ( char * s,
size_t l )

Return the current username in the specified string buffer.

References pa_get_user_name().

Referenced by pa_get_user_name().

◆ pa_msleep()

int pa_msleep ( unsigned long t)

Wait t milliseconds.

References pa_msleep().

Referenced by pa_msleep().

◆ pa_path_get_filename()

char * pa_path_get_filename ( const char * p)

Return a pointer to the filename inside a path (which is the last component).

If passed NULL will return NULL.

References pa_path_get_filename().

Referenced by pa_path_get_filename().

◆ pa_thread_make_realtime()

int pa_thread_make_realtime ( int rtprio)

Make the calling thread realtime if we can.

On Linux, this uses RealTimeKit if available and POSIX APIs otherwise (the latter applies to other UNIX variants as well). This is also implemented for macOS and Windows.

Since
13.0

References pa_thread_make_realtime().

Referenced by pa_thread_make_realtime().