sssd_dbus_server.c revision 978bea5902ece9b9f01d1d6525dbe0889a410ffc
/*
SSSD
Service monitor - D-BUS features
Copyright (C) Stephen Gallagher 2008
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "tevent.h"
#include "sbus/sssd_dbus.h"
#include "sbus/sssd_dbus_private.h"
static int sbus_server_destructor(void *ctx);
/*
* new_connection_callback
* Actions to be run upon each new client connection
* Must either perform dbus_connection_ref() on the
* new connection or else close the connection with
* dbus_connection_close()
*/
void *data)
{
struct sbus_connection *server;
struct sbus_connection *conn;
int ret;
if (!server) {
return;
}
if (ret != 0) {
return;
}
/*
* Initialize connection-specific features
* This may set a more detailed destructor, but
* the default destructor will always be chained
* to handle connection cleanup.
* This function (or its callbacks) should also
* set up connection-specific methods.
*/
}
}
/*
* dbus_new_server
* Set up a D-BUS server, integrate with the event loop
* for handling file descriptor and timed events
*/
struct tevent_context *ev,
const char *address,
struct sbus_interface *intf,
struct sbus_connection **_server,
{
struct sbus_connection *server;
char *tmp;
int ret;
char *filename;
/* Set up D-BUS server */
if (!dbus_server) {
return EIO;
}
return EIO;
}
return EIO;
}
return EIO;
}
}
if (!server) {
return ENOMEM;
}
/* Set up D-BUS new connection handler */
/* Set up DBusWatch functions */
if (!dbret) {
return EIO;
}
/* Set up DBusTimeout functions */
if (!dbret) {
return EIO;
}
return EOK;
}
static int sbus_server_destructor(void *ctx)
{
struct sbus_connection *server;
return 0;
}