rlib
Convenience library for useful things
Loading...
Searching...
No Matches
rproc.h
Go to the documentation of this file.
1/* RLIB - Convenience library for useful things
2 * Copyright (C) 2015 Haakon Sporsheim <haakon.sporsheim@gmail.com>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 3.0 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library.
16 * See the COPYING file at the root of the source repository.
17 */
18#ifndef __R_PROC_H__
19#define __R_PROC_H__
20
27#include <rlib/rtypes.h>
28
40
44R_API rchar * r_proc_get_exe_path (void) R_ATTR_MALLOC;
46R_API rchar * r_proc_get_exe_name (void) R_ATTR_MALLOC;
47
50
51R_END_DECLS
52
55#endif /* __R_PROC_H__ */
56
#define R_API
Public-API decoration: resolves to R_API_EXPORT while building rlib and R_API_IMPORT for consumers.
Definition rmacros.h:115
#define R_BEGIN_DECLS
Open an extern "C" block under C++ (no-op in C).
Definition rmacros.h:196
rchar * r_proc_get_exe_path(void)
Return the absolute path of the running executable (newly allocated).
rchar * r_proc_get_exe_name(void)
Return the filename of the running executable (newly allocated).
int r_proc_get_id(void)
Return the current process ID.
rboolean r_proc_is_debugger_attached(void)
TRUE if a debugger is currently attached to this process.
char rchar
Default character type (char).
Definition rtypes.h:137
int rboolean
Boolean type (typedef'd to int).
Definition rtypes.h:59
Foundational type aliases used by every rlib header.