Path: blob/master/thirdparty/linuxbsd_headers/dbus/dbus-misc.h
9903 views
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */1/* dbus-misc.h A few assorted public functions that don't fit elsewhere2*3* Copyright (C) 2006 Red Hat, Inc.4*5* Licensed under the Academic Free License version 2.16*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20*21*/22#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)23#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."24#endif2526#ifndef DBUS_MISC_H27#define DBUS_MISC_H2829#include <dbus/dbus-types.h>30#include <dbus/dbus-errors.h>3132DBUS_BEGIN_DECLS3334/**35* @addtogroup DBusMisc36* @{37*/38DBUS_EXPORT39char* dbus_get_local_machine_id (void);4041DBUS_EXPORT42void dbus_get_version (int *major_version_p,43int *minor_version_p,44int *micro_version_p);4546DBUS_EXPORT47dbus_bool_t dbus_setenv (const char *variable,48const char *value);4950DBUS_EXPORT51char *dbus_try_get_local_machine_id (DBusError *error);5253/** @} */5455DBUS_END_DECLS5657#endif /* DBUS_MISC_H */58596061