|
Packit |
d7e8d0 |
/* sys-util.h - System utilities not generally used.
|
|
Packit |
d7e8d0 |
* Copyright (C) 2013 g10 Code GmbH
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* This file is part of GPGME.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* GPGME is free software; you can redistribute it and/or modify it
|
|
Packit |
d7e8d0 |
* under the terms of the GNU Lesser General Public License as
|
|
Packit |
d7e8d0 |
* published by the Free Software Foundation; either version 2.1 of
|
|
Packit |
d7e8d0 |
* the License, or (at your option) any later version.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* GPGME is distributed in the hope that it will be useful, but
|
|
Packit |
d7e8d0 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
d7e8d0 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
d7e8d0 |
* Lesser General Public License for more details.
|
|
Packit |
d7e8d0 |
*
|
|
Packit |
d7e8d0 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
d7e8d0 |
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
Packit |
d7e8d0 |
*/
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#ifndef SYS_UTIL_H
|
|
Packit |
d7e8d0 |
#define SYS_UTIL_H
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
/*-- {posix,w32}-util.c --*/
|
|
Packit |
d7e8d0 |
int _gpgme_set_default_gpg_name (const char *name);
|
|
Packit |
d7e8d0 |
int _gpgme_set_default_gpgconf_name (const char *name);
|
|
Packit |
d7e8d0 |
int _gpgme_set_override_inst_dir (const char *dir);
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
char *_gpgme_get_gpg_path (void);
|
|
Packit |
d7e8d0 |
char *_gpgme_get_gpgconf_path (void);
|
|
Packit |
d7e8d0 |
|
|
Packit Service |
30b792 |
int _gpgme_access (const char *path_utf8, int mode);
|
|
Packit Service |
30b792 |
|
|
Packit |
d7e8d0 |
#ifdef HAVE_W32_SYSTEM
|
|
Packit |
d7e8d0 |
const char *_gpgme_get_inst_dir (void);
|
|
Packit Service |
30b792 |
void _gpgme_w32_cancel_synchronous_io (HANDLE thread);
|
|
Packit Service |
30b792 |
/* See CreateProcessA returns true on success */
|
|
Packit Service |
30b792 |
int _gpgme_create_process_utf8 (const char *application_name_utf8,
|
|
Packit Service |
30b792 |
char *command_line_utf8,
|
|
Packit Service |
30b792 |
LPSECURITY_ATTRIBUTES lpProcessAttributes,
|
|
Packit Service |
30b792 |
LPSECURITY_ATTRIBUTES lpThreadAttributes,
|
|
Packit Service |
30b792 |
BOOL bInheritHandles,
|
|
Packit Service |
30b792 |
DWORD dwCreationFlags,
|
|
Packit Service |
30b792 |
void *lpEnvironment,
|
|
Packit Service |
30b792 |
char *working_directory_utf8,
|
|
Packit Service |
30b792 |
LPSTARTUPINFOA lpStartupInfo,
|
|
Packit Service |
30b792 |
LPPROCESS_INFORMATION lpProcessInformation);
|
|
Packit |
d7e8d0 |
#endif
|
|
Packit |
d7e8d0 |
|
|
Packit |
d7e8d0 |
#endif /* SYS_UTIL_H */
|