Use config.h defines for path, bus, and interface
Change-Id: I1b3d09caac7fde6e7fd6c5a90a1fe4afa7613f29
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/libmapper/mapper.c b/libmapper/mapper.c
index b1aec6b..74326ea 100644
--- a/libmapper/mapper.c
+++ b/libmapper/mapper.c
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -128,9 +129,9 @@
r = sd_bus_call_method_async(
wait->conn,
NULL,
- "org.openbmc.ObjectMapper",
- "/org/openbmc/ObjectMapper",
- "org.openbmc.ObjectMapper",
+ MAPPER_BUSNAME,
+ MAPPER_PATH,
+ MAPPER_INTERFACE,
"GetObject",
async_wait_getobject_callback,
data,
@@ -220,9 +221,9 @@
r = sd_bus_call_method_async(
wait->conn,
NULL,
- "org.openbmc.ObjectMapper",
- "/org/openbmc/ObjectMapper",
- "org.openbmc.ObjectMapper",
+ MAPPER_BUSNAME,
+ MAPPER_PATH,
+ MAPPER_INTERFACE,
"GetObject",
async_wait_getobject_callback,
data,
@@ -410,9 +411,9 @@
r = sd_bus_message_new_method_call(
conn,
&request,
- "org.openbmc.ObjectMapper",
- "/org/openbmc/ObjectMapper",
- "org.openbmc.ObjectMapper",
+ MAPPER_BUSNAME,
+ MAPPER_PATH,
+ MAPPER_INTERFACE,
"GetObject");
if (r < 0)
goto exit;