• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List

dbus-sysdeps-win.h

00001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
00002 /* dbus-sysdeps.c Wrappers around system/libc features (internal to D-BUS implementation)
00003  * 
00004  * Copyright (C) 2002, 2003  Red Hat, Inc.
00005  * Copyright (C) 2003 CodeFactory AB
00006  * Copyright (C) 2005 Novell, Inc.
00007  *
00008  * Licensed under the Academic Free License version 2.1
00009  * 
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  * 
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00023  *
00024  */
00025 
00026 #ifndef DBUS_SYSDEPS_WIN_H
00027 #define DBUS_SYSDEPS_WIN_H
00028 
00029 extern void *_dbus_win_get_dll_hmodule (void);
00030 #define _WINSOCKAPI_
00031 
00032 #include "dbus-hash.h"
00033 #include "dbus-string.h"
00034 #include <ctype.h>
00035 #include <malloc.h>
00036 #include <windows.h>
00037 #undef interface
00038 
00039 #define DBUS_CONSOLE_DIR "/var/run/console/"
00040 
00041 
00042 void _dbus_win_set_errno (int err);
00043 const char* _dbus_win_error_from_last_error (void);
00044 
00045 void _dbus_win_startup_winsock (void);
00046 void _dbus_win_warn_win_error  (const char *message,
00047                                 int         code);
00048                                 
00049 char * _dbus_win_error_string (int error_number);
00050 void _dbus_win_free_error_string (char *string);
00051 
00052 extern const char* _dbus_lm_strerror  (int error_number);
00053 
00054 
00055 dbus_bool_t _dbus_win_account_to_sid (const wchar_t *waccount,
00056                                       void         **ppsid,
00057                                       DBusError     *error);
00058 
00059 dbus_bool_t
00060 _dbus_win32_sid_to_name_and_domain (dbus_uid_t  uid,
00061                                     wchar_t   **wname,
00062                                     wchar_t   **wdomain,
00063                                     DBusError  *error);
00064 
00065 
00066 /* Don't define DBUS_CONSOLE_DIR on Win32 */
00067 
00068 wchar_t    *_dbus_win_utf8_to_utf16 (const char  *str,
00069                                      DBusError   *error);
00070 char       *_dbus_win_utf16_to_utf8 (const wchar_t *str,
00071                                      DBusError *error);
00072 
00073 void        _dbus_win_set_error_from_win_error (DBusError *error, int code);
00074 
00075 dbus_bool_t
00076 _dbus_win_sid_to_name_and_domain (dbus_uid_t uid,
00077                                   wchar_t  **wname,
00078                                   wchar_t  **wdomain,
00079                                   DBusError *error);
00080 
00081 dbus_bool_t _dbus_file_exists (const char *filename);
00082 
00083 dbus_bool_t _dbus_get_config_file_name(DBusString *config_file, 
00084                                        char *s);
00085 
00086 #endif
00087 

Generated on Mon Sep 27 2010 22:54:24 for D-Bus by  doxygen 1.7.1