guard dbus function impls with ifdef
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
54fed150e8
commit
677d8c8046
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ MwBool MwLLDBusFuncSetup(MwLLDBusFuncTable* tbl) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DBUS
|
||||||
MwBool MwLLDBusNewContext(MwLLDBusFuncTable* tbl, MwLLDBusContext* ctx) {
|
MwBool MwLLDBusNewContext(MwLLDBusFuncTable* tbl, MwLLDBusContext* ctx) {
|
||||||
if(!tbl->lib) {
|
if(!tbl->lib) {
|
||||||
return MwFALSE;
|
return MwFALSE;
|
||||||
|
|
@ -180,3 +181,4 @@ void MwLLDBusFreeContext(MwLLDBusFuncTable* tbl, MwLLDBusContext* ctx) {
|
||||||
if(ctx->dbus_reply) tbl->dbus_message_unref(ctx->dbus_reply);
|
if(ctx->dbus_reply) tbl->dbus_message_unref(ctx->dbus_reply);
|
||||||
if(ctx->dbus_conn) tbl->dbus_connection_unref(ctx->dbus_conn);
|
if(ctx->dbus_conn) tbl->dbus_connection_unref(ctx->dbus_conn);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue