Sophie

Sophie

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

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-auth.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-auth.h</h1><div class="fragment"><pre>00001 <font class="comment">/* -*- mode: C; c-file-style: "gnu" -*- */</font>
00002 <font class="comment">/* dbus-auth.h Authentication</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Copyright (C) 2002  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 <font class="preprocessor">#ifndef DBUS_AUTH_H</font>
00024 <font class="preprocessor"></font><font class="preprocessor">#define DBUS_AUTH_H</font>
00025 <font class="preprocessor"></font>
00026 <font class="preprocessor">#include &lt;dbus/dbus-macros.h&gt;</font>
00027 <font class="preprocessor">#include &lt;dbus/dbus-errors.h&gt;</font>
00028 <font class="preprocessor">#include &lt;dbus/dbus-string.h&gt;</font>
00029 <font class="preprocessor">#include &lt;dbus/dbus-sysdeps.h&gt;</font>
00030 
00031 DBUS_BEGIN_DECLS;
00032 
00033 <font class="keyword">typedef</font> <font class="keyword">struct </font><a class="code" href="structDBusAuth.html">DBusAuth</a> DBusAuth;
00034 
00035 <font class="keyword">typedef</font> <font class="keyword">enum</font>
00036 {
00037   DBUS_AUTH_STATE_WAITING_FOR_INPUT,
00038   DBUS_AUTH_STATE_WAITING_FOR_MEMORY,
00039   DBUS_AUTH_STATE_HAVE_BYTES_TO_SEND,
00040   DBUS_AUTH_STATE_NEED_DISCONNECT,
00041   DBUS_AUTH_STATE_AUTHENTICATED
00042 } DBusAuthState;
00043 
00044 DBusAuth*     _dbus_auth_server_new          (<font class="keywordtype">void</font>);
00045 DBusAuth*     _dbus_auth_client_new          (<font class="keywordtype">void</font>);
00046 DBusAuth*     _dbus_auth_ref                 (DBusAuth               *auth);
00047 <font class="keywordtype">void</font>          _dbus_auth_unref               (DBusAuth               *auth);
00048 dbus_bool_t   _dbus_auth_set_mechanisms      (DBusAuth               *auth,
00049                                               <font class="keyword">const</font> <font class="keywordtype">char</font>            **mechanisms);
00050 DBusAuthState _dbus_auth_do_work             (DBusAuth               *auth);
00051 dbus_bool_t   _dbus_auth_get_bytes_to_send   (DBusAuth               *auth,
00052                                               <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>      **str);
00053 <font class="keywordtype">void</font>          _dbus_auth_bytes_sent          (DBusAuth               *auth,
00054                                               <font class="keywordtype">int</font>                     bytes_sent);
00055 <font class="keywordtype">void</font>          _dbus_auth_get_buffer          (DBusAuth               *auth,
00056                                               <a class="code" href="structDBusString.html">DBusString</a>            **buffer);
00057 <font class="keywordtype">void</font>          _dbus_auth_return_buffer       (DBusAuth               *auth,
00058                                               <a class="code" href="structDBusString.html">DBusString</a>             *buffer,
00059                                               <font class="keywordtype">int</font>                     bytes_read);
00060 <font class="keywordtype">void</font>          _dbus_auth_get_unused_bytes    (DBusAuth               *auth,
00061                                               <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>      **str);
00062 <font class="keywordtype">void</font>          _dbus_auth_delete_unused_bytes (DBusAuth               *auth);
00063 dbus_bool_t   _dbus_auth_needs_encoding      (DBusAuth               *auth);
00064 dbus_bool_t   _dbus_auth_encode_data         (DBusAuth               *auth,
00065                                               <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>       *plaintext,
00066                                               <a class="code" href="structDBusString.html">DBusString</a>             *encoded);
00067 dbus_bool_t   _dbus_auth_needs_decoding      (DBusAuth               *auth);
00068 dbus_bool_t   _dbus_auth_decode_data         (DBusAuth               *auth,
00069                                               <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>       *encoded,
00070                                               <a class="code" href="structDBusString.html">DBusString</a>             *plaintext);
00071 <font class="keywordtype">void</font>          _dbus_auth_set_credentials     (DBusAuth               *auth,
00072                                               <font class="keyword">const</font> <a class="code" href="structDBusCredentials.html">DBusCredentials</a>  *credentials);
00073 <font class="keywordtype">void</font>          _dbus_auth_get_identity        (DBusAuth               *auth,
00074                                               <a class="code" href="structDBusCredentials.html">DBusCredentials</a>        *credentials);
00075 dbus_bool_t   _dbus_auth_set_context         (DBusAuth               *auth,
00076                                               <font class="keyword">const</font> <a class="code" href="structDBusString.html">DBusString</a>       *context);
00077 
00078 
00079 DBUS_END_DECLS;
00080 
00081 <font class="preprocessor">#endif </font><font class="comment">/* DBUS_AUTH_H */</font>
</pre></div><hr><address align="right"><small>Generated on Wed Jun 9 05:01:25 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>