2006-05-17 20:09:57 +00:00
|
|
|
#ifndef fooutilhfoo
|
|
|
|
|
#define fooutilhfoo
|
|
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
/***
|
2006-06-19 21:53:48 +00:00
|
|
|
This file is part of PulseAudio.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is free software; you can redistribute it and/or modify
|
2006-05-17 20:09:57 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
License, or (at your option) any later version.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is distributed in the hope that it will be useful, but
|
2006-05-17 20:09:57 +00:00
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
Lesser General Public License for more details.
|
2007-01-04 13:43:45 +00:00
|
|
|
|
2006-05-17 20:09:57 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2006-06-19 21:53:48 +00:00
|
|
|
License along with PulseAudio; if not, write to the Free Software
|
2006-05-17 20:09:57 +00:00
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
|
USA.
|
|
|
|
|
***/
|
|
|
|
|
|
2006-05-18 06:45:43 +00:00
|
|
|
#include <stddef.h>
|
2006-05-17 20:09:57 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
#include <pulse/cdecl.h>
|
2006-05-17 20:43:19 +00:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* Assorted utility functions */
|
|
|
|
|
|
|
|
|
|
PA_C_DECL_BEGIN
|
2006-05-17 20:09:57 +00:00
|
|
|
|
2006-05-17 20:43:19 +00:00
|
|
|
/** Return the current username in the specified string buffer. */
|
2006-05-17 20:09:57 +00:00
|
|
|
char *pa_get_user_name(char *s, size_t l);
|
2006-05-17 20:43:19 +00:00
|
|
|
|
|
|
|
|
/** Return the current hostname in the specified buffer. */
|
2006-05-17 20:09:57 +00:00
|
|
|
char *pa_get_host_name(char *s, size_t l);
|
2006-05-17 20:43:19 +00:00
|
|
|
|
|
|
|
|
/** Return the fully qualified domain name in s */
|
2006-05-17 20:09:57 +00:00
|
|
|
char *pa_get_fqdn(char *s, size_t l);
|
2006-05-17 20:43:19 +00:00
|
|
|
|
|
|
|
|
/** Return the home directory of the current user */
|
2006-05-17 20:09:57 +00:00
|
|
|
char *pa_get_home_dir(char *s, size_t l);
|
|
|
|
|
|
2006-05-17 20:43:19 +00:00
|
|
|
/** Return the binary file name of the current process. This is not
|
|
|
|
|
* supported on all architectures, in which case NULL is returned. */
|
2006-05-17 20:09:57 +00:00
|
|
|
char *pa_get_binary_name(char *s, size_t l);
|
2006-05-17 20:43:19 +00:00
|
|
|
|
|
|
|
|
/** Return a pointer to the filename inside a path (which is the last
|
|
|
|
|
* component). */
|
2006-05-17 20:09:57 +00:00
|
|
|
const char *pa_path_get_filename(const char *p);
|
|
|
|
|
|
2006-05-17 20:43:19 +00:00
|
|
|
/** Wait t milliseconds */
|
2006-05-17 20:09:57 +00:00
|
|
|
int pa_msleep(unsigned long t);
|
|
|
|
|
|
2006-05-17 20:43:19 +00:00
|
|
|
PA_C_DECL_END
|
|
|
|
|
|
2006-05-17 20:09:57 +00:00
|
|
|
#endif
|