* limitations under the License.
*/
-#ifndef __CONTEXT_STORE_TEST_API_H__
-#define __CONTEXT_STORE_TEST_API_H__
+#ifndef __CONTEXT_STORE_H__
+#define __CONTEXT_STORE_H__
#include <ContextStoreTypes.h>
{
#endif
+/* TEST CODE */
int context_store_test();
#ifdef __cplusplus
*/
#include <ContextStoreTypesPrivate.h>
-#include <TestAPI.h>
+#include <ContextStore.h>
using namespace ctx;
#include <ContextStoreTypesPrivate.h>
#include <DBusClient.h>
-#include <TestAPI.h>
+#include <ContextStore.h>
using namespace ctx;
_I(YELLOW("Return: %d (%s)"), err, CTX_ERROR_STR(err));
+ if (output)
+ g_variant_unref(output);
+
return err;
}
void ContextStoreClientProxy::onMethodCalled(MethodCall* methodCall)
{
- /* TODO: Remove this test code */
- char* param = g_variant_print(methodCall->getParam(), FALSE);
- _I("Caller: %s, Method: %s", methodCall->getSender()->getBusName().c_str(), methodCall->getMethodName().c_str());
- _I("Parameters: %s", param);
- g_free(param);
- methodCall->reply(E_FAILED);
+ // 'methodCall' should be deleted.
delete methodCall;
}