Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > 926d2d1e3111287cee1b0a4fad4fb4f6 > files > 145

lib64dbus-1_3-devel-0.92-6mdv2007.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>dbus-userdb.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>dbus-userdb.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* dbus-userdb.h User database abstraction</font>
00003 <font class="comment"> * </font>
00004 <font class="comment"> * Copyright (C) 2003  Red Hat, Inc.</font>
00005 <font class="comment"> *</font>
00006 <font class="comment"> * Licensed under the Academic Free License version 2.0</font>
00007 <font class="comment"> * </font>
00008 <font class="comment"> * This program is free software; you can redistribute it and/or modify</font>
00009 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
00010 <font class="comment"> * the Free Software Foundation; either version 2 of the License, or</font>
00011 <font class="comment"> * (at your option) any later version.</font>
00012 <font class="comment"> *</font>
00013 <font class="comment"> * This program is distributed in the hope that it will be useful,</font>
00014 <font class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00015 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</font>
00016 <font class="comment"> * GNU General Public License for more details.</font>
00017 <font class="comment"> * </font>
00018 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
00019 <font class="comment"> * along with this program; if not, write to the Free Software</font>
00020 <font class="comment"> * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</font>
00021 <font class="comment"> *</font>
00022 <font class="comment"> */</font>
00023 
00024 <font class="preprocessor">#ifndef DBUS_USERDB_H</font>
00025 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_USERDB_H</font>
00026 <font class="preprocessor"></font>
00027 <font class="preprocessor">#include &lt;dbus/dbus-sysdeps.h&gt;</font>
00028 
00029 DBUS_BEGIN_DECLS;
00030 
00031 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusUserDatabase.html">DBusUserDatabase</a> DBusUserDatabase;
00032 
00033 DBusUserDatabase* _dbus_user_database_new           (<font class="keywordtype">void</font>);
00034 DBusUserDatabase* _dbus_user_database_ref           (DBusUserDatabase     *db);
00035 <font class="keywordtype">void</font>              _dbus_user_database_unref         (DBusUserDatabase     *db);
00036 dbus_bool_t       _dbus_user_database_get_groups    (DBusUserDatabase     *db,
00037                                                      dbus_uid_t            uid,
00038                                                      dbus_gid_t          **group_ids,
00039                                                      <font class="keywordtype">int</font>                  *n_group_ids,
00040                                                      <a class="code" href="structDBusError.html">DBusError</a>            *error);
00041 dbus_bool_t       _dbus_user_database_get_uid       (DBusUserDatabase     *db,
00042                                                      dbus_uid_t            uid,
00043                                                      <font class="keyword">const</font> <a class="code" href="structDBusUserInfo.html">DBusUserInfo</a>  **info,
00044                                                      <a class="code" href="structDBusError.html">DBusError</a>            *error);
00045 dbus_bool_t       _dbus_user_database_get_gid       (DBusUserDatabase     *db,
00046                                                      dbus_gid_t            gid,
00047                                                      <font class="keyword">const</font> <a class="code" href="structDBusGroupInfo.html">DBusGroupInfo</a> **info,
00048                                                      <a class="code" href="structDBusError.html">DBusError</a>            *error);
00049 dbus_bool_t       _dbus_user_database_get_username  (DBusUserDatabase     *db,
00050                                                      <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>     *username,
00051                                                      <font class="keyword">const</font> <a class="code" href="structDBusUserInfo.html">DBusUserInfo</a>  **info,
00052                                                      <a class="code" href="structDBusError.html">DBusError</a>            *error);
00053 dbus_bool_t       _dbus_user_database_get_groupname (DBusUserDatabase     *db,
00054                                                      <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>     *groupname,
00055                                                      <font class="keyword">const</font> <a class="code" href="structDBusGroupInfo.html">DBusGroupInfo</a> **info,
00056                                                      <a class="code" href="structDBusError.html">DBusError</a>            *error);
00057 
00058 
00059 
00060 DBusUserDatabase* _dbus_user_database_get_system    (<font class="keywordtype">void</font>);
00061 <font class="keywordtype">void</font>              _dbus_user_database_lock_system   (<font class="keywordtype">void</font>);
00062 <font class="keywordtype">void</font>              _dbus_user_database_unlock_system (<font class="keywordtype">void</font>);
00063 
00064 dbus_bool_t _dbus_username_from_current_process (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a> **username);
00065 dbus_bool_t _dbus_homedir_from_current_process  (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a> **homedir);
00066 dbus_bool_t _dbus_homedir_from_username         (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>  *username,
00067                                                  <a class="code" href="structDBusString.html">DBusString</a>        *homedir);
00068 dbus_bool_t _dbus_get_user_id                   (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>  *username,
00069                                                  dbus_uid_t        *uid);
00070 dbus_bool_t _dbus_get_group_id                  (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>  *group_name,
00071                                                  dbus_gid_t        *gid);
00072 dbus_bool_t _dbus_uid_from_string               (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>  *uid_str,
00073                                                  dbus_uid_t        *uid);
00074 dbus_bool_t _dbus_credentials_from_username     (<font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>  *username,
00075                                                  <a class="code" href="structDBusCredentials.html">DBusCredentials</a>   *credentials);
00076 dbus_bool_t _dbus_credentials_from_uid          (dbus_uid_t         user_id,
00077                                                  <a class="code" href="structDBusCredentials.html">DBusCredentials</a>   *credentials);
00078 
00079 
00080 DBUS_END_DECLS;
00081 
00082 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_USERDB_H */</font>
</pre></div><hr><address align="right"><small>Generated on Wed Jun 9 05:01:27 2004 for D-BUS by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>