virdbus: Make virDBusCall static

This commit is contained in:
Cole Robinson 2014-05-03 15:28:08 -04:00
parent 3e8699d324
commit 709f2455cc
3 changed files with 5 additions and 19 deletions

View File

@ -1148,7 +1148,6 @@ virCryptoHashString;
# util/virdbus.h
virDBusCall;
virDBusCallMethod;
virDBusCloseSystemBus;
virDBusCreateMethod;

View File

@ -1404,10 +1404,11 @@ int virDBusCreateReply(DBusMessage **reply,
*
* Returns 0 on success, or -1 upon error
*/
int virDBusCall(DBusConnection *conn,
DBusMessage *call,
DBusMessage **replyout,
DBusError *error)
static int
virDBusCall(DBusConnection *conn,
DBusMessage *call,
DBusMessage **replyout,
DBusError *error)
{
DBusMessage *reply = NULL;
DBusError localerror;
@ -1694,16 +1695,6 @@ int virDBusCreateReply(DBusMessage **reply ATTRIBUTE_UNUSED,
return -1;
}
int virDBusCall(DBusConnection *conn ATTRIBUTE_UNUSED,
DBusMessage *call ATTRIBUTE_UNUSED,
DBusMessage **reply ATTRIBUTE_UNUSED,
DBusError *error ATTRIBUTE_UNUSED)
{
virReportError(VIR_ERR_INTERNAL_ERROR,
"%s", _("DBus support not compiled into this binary"));
return -1;
}
int virDBusCallMethod(DBusConnection *conn ATTRIBUTE_UNUSED,
DBusMessage **reply ATTRIBUTE_UNUSED,
DBusError *error ATTRIBUTE_UNUSED,

View File

@ -68,10 +68,6 @@ int virDBusCallMethod(DBusConnection *conn,
const char *iface,
const char *member,
const char *types, ...);
int virDBusCall(DBusConnection *conn,
DBusMessage *call,
DBusMessage **reply,
DBusError *error);
int virDBusMessageRead(DBusMessage *msg,
const char *types, ...);
void virDBusMessageUnref(DBusMessage *msg);