5 This file is part of PulseAudio.
7 Copyright 2004-2006 Lennart Poettering
8 Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
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.
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.
20 You should have received a copy of the GNU Lesser General Public
21 License along with PulseAudio; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
28 #include <pulse/cdecl.h>
29 #include <pulse/version.h>
32 * Assorted utility functions */
36 /** Return the current username in the specified string buffer. */
37 char *pa_get_user_name(char *s
, size_t l
);
39 /** Return the current hostname in the specified buffer. */
40 char *pa_get_host_name(char *s
, size_t l
);
42 /** Return the fully qualified domain name in s */
43 char *pa_get_fqdn(char *s
, size_t l
);
45 /** Return the home directory of the current user */
46 char *pa_get_home_dir(char *s
, size_t l
);
48 /** Return the binary file name of the current process. This is not
49 * supported on all architectures, in which case NULL is returned. */
50 char *pa_get_binary_name(char *s
, size_t l
);
52 /** Return a pointer to the filename inside a path (which is the last
53 * component). If passed NULL will return NULL. */
54 char *pa_path_get_filename(const char *p
);
56 /** Wait t milliseconds */
57 int pa_msleep(unsigned long t
);