Path: blob/master/thirdparty/linuxbsd_headers/pulse/util.h
9905 views
#ifndef fooutilhfoo1#define fooutilhfoo23/***4This file is part of PulseAudio.56Copyright 2004-2006 Lennart Poettering7Copyright 2006 Pierre Ossman <[email protected]> for Cendio AB89PulseAudio is free software; you can redistribute it and/or modify10it under the terms of the GNU Lesser General Public License as11published by the Free Software Foundation; either version 2.1 of the12License, or (at your option) any later version.1314PulseAudio is distributed in the hope that it will be useful, but15WITHOUT ANY WARRANTY; without even the implied warranty of16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU17Lesser General Public License for more details.1819You should have received a copy of the GNU Lesser General Public20License along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.21***/2223#include <stddef.h>2425#include <pulse/cdecl.h>26#include <pulse/version.h>2728/** \file29* Assorted utility functions */3031PA_C_DECL_BEGIN3233/** Return the current username in the specified string buffer. */34char *pa_get_user_name(char *s, size_t l);3536/** Return the current hostname in the specified buffer. */37char *pa_get_host_name(char *s, size_t l);3839/** Return the fully qualified domain name in s */40char *pa_get_fqdn(char *s, size_t l);4142/** Return the home directory of the current user */43char *pa_get_home_dir(char *s, size_t l);4445/** Return the binary file name of the current process. This is not46* supported on all architectures, in which case NULL is returned. */47char *pa_get_binary_name(char *s, size_t l);4849/** Return a pointer to the filename inside a path (which is the last50* component). If passed NULL will return NULL. */51char *pa_path_get_filename(const char *p);5253/** Wait t milliseconds */54int pa_msleep(unsigned long t);5556PA_C_DECL_END5758#endif596061