PulseAudio  16.0
util.h
Go to the documentation of this file.
1 #ifndef fooutilhfoo
2 #define fooutilhfoo
3 
4 /***
5  This file is part of PulseAudio.
6 
7  Copyright 2004-2006 Lennart Poettering
8  Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
9 
10  PulseAudio is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as
12  published by the Free Software Foundation; either version 2.1 of the
13  License, or (at your option) any later version.
14 
15  PulseAudio is distributed in the hope that it will be useful, but
16  WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
22 ***/
23 
24 #include <stddef.h>
25 
26 #include <pulse/cdecl.h>
27 #include <pulse/version.h>
28 
32 PA_C_DECL_BEGIN
33 
35 char *pa_get_user_name(char *s, size_t l);
36 
38 char *pa_get_host_name(char *s, size_t l);
39 
41 char *pa_get_fqdn(char *s, size_t l);
42 
44 char *pa_get_home_dir(char *s, size_t l);
45 
48 char *pa_get_binary_name(char *s, size_t l);
49 
52 char *pa_path_get_filename(const char *p);
53 
55 int pa_msleep(unsigned long t);
56 
61 int pa_thread_make_realtime(int rtprio);
62 
63 PA_C_DECL_END
64 
65 #endif
int pa_msleep(unsigned long t)
Wait t milliseconds.
char * pa_get_host_name(char *s, size_t l)
Return the current hostname in the specified buffer.
char * pa_get_home_dir(char *s, size_t l)
Return the home directory of the current user.
int pa_thread_make_realtime(int rtprio)
Make the calling thread realtime if we can.
char * pa_get_binary_name(char *s, size_t l)
Return the binary file name of the current process.
char * pa_get_fqdn(char *s, size_t l)
Return the fully qualified domain name in s.
char * pa_path_get_filename(const char *p)
Return a pointer to the filename inside a path (which is the last component).
char * pa_get_user_name(char *s, size_t l)
Return the current username in the specified string buffer.