1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 /* dbus-sysdeps.c Wrappers around system/libc features (internal to D-BUS implementation)
4 * Copyright (C) 2002, 2003 Red Hat, Inc.
5 * Copyright (C) 2003 CodeFactory AB
6 * Copyright (C) 2005 Novell, Inc.
8 * Licensed under the Academic Free License version 2.1
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #ifndef DBUS_SYSDEPS_WIN_H
27 #define DBUS_SYSDEPS_WIN_H
29 extern void *_dbus_win_get_dll_hmodule (void);
32 #include "dbus-hash.h"
33 #include "dbus-string.h"
39 #define DBUS_CONSOLE_DIR "/var/run/console/"
42 void _dbus_win_set_errno (int err);
43 const char* _dbus_win_error_from_last_error (void);
45 void _dbus_win_startup_winsock (void);
46 void _dbus_win_warn_win_error (const char *message,
49 char * _dbus_win_error_string (int error_number);
50 void _dbus_win_free_error_string (char *string);
52 extern const char* _dbus_lm_strerror (int error_number);
55 dbus_bool_t _dbus_win_account_to_sid (const wchar_t *waccount,
60 _dbus_win32_sid_to_name_and_domain (dbus_uid_t uid,
66 /* Don't define DBUS_CONSOLE_DIR on Win32 */
68 wchar_t *_dbus_win_utf8_to_utf16 (const char *str,
70 char *_dbus_win_utf16_to_utf8 (const wchar_t *str,
73 void _dbus_win_set_error_from_win_error (DBusError *error, int code);
76 _dbus_win_sid_to_name_and_domain (dbus_uid_t uid,
81 dbus_bool_t _dbus_file_exists (const char *filename);
83 dbus_bool_t _dbus_get_config_file_name(DBusString *config_file,
86 dbus_bool_t _dbus_get_install_root(char *prefix, int len);
88 void _dbus_threads_windows_init_global (void);
89 void _dbus_threads_windows_ensure_ctor_linked (void);
93 /** @} end of sysdeps-win.h */