{
MsgPortDbusService *dbus_service = MSGPORT_DBUS_SERVICE (self);
+ if (dbus_service->priv->port_name) {
+ g_free (dbus_service->priv->port_name);
+ dbus_service->priv->port_name = NULL;
+ }
+
G_OBJECT_CLASS (msgport_dbus_service_parent_class)->finalize (self);
}
{
MsgPortDbusService *peer_dbus_service = NULL;
MsgPortManager *manager = NULL;
- GError *error;
+ GError *error = NULL;
- msgport_return_val_if_fail_with_error (dbus_service && MSGPORT_IS_DBUS_SERVICE (dbus_service), FALSE, &error);
+ msgport_return_val_if_fail (dbus_service && MSGPORT_IS_DBUS_SERVICE (dbus_service), FALSE);
DBG ("Send Message rquest on service %p to remote service id : %d", dbus_service, remote_service_id);
manager = msgport_dbus_manager_get_manager (dbus_service->priv->owner);
GDBusMethodInvocation *invocation,
gpointer userdata)
{
- GError *error = NULL;
- msgport_return_val_if_fail_with_error (dbus_service && MSGPORT_IS_DBUS_SERVICE (dbus_service), FALSE, &error);
+ msgport_return_val_if_fail (dbus_service && MSGPORT_IS_DBUS_SERVICE (dbus_service), FALSE);
/* FIXME unregister */
return TRUE;
*/
#include "config.h"
+#include <bundle.h>
#include <glib.h>
-#include <unistd.h>
+#include <glib/gprintf.h>
+#include <glib-unix.h>
+#include <message-port.h>
#include <stdlib.h>
#include <string.h>
-#include <message-port.h>
-#include <bundle.h>
#include <unistd.h>
int __pipe[2]; /* pipe between two process */
}while (0)
-#define test_assert(expr, msg...) \
+#define test_assert(expr, msg, args...) \
do { \
if ((expr) == FALSE) {\
- g_print ("%s +%d: assert(%s):%s\n", __FUNCTION__, __LINE__, #expr, ##msg); \
+ g_print ("%s +%d: assert(%s):"msg"\n", __FUNCTION__, __LINE__, #expr, ##args); \
return FALSE; \
} \
} while(0);
{
gchar *name = NULL;
gboolean found = FALSE;
- bundle *b = NULL;
messageport_get_local_port_name (port_id, &name),
g_debug ("PARENT: GOT MESSAGE at prot %s FROM :'%s' app - '%s' port", name,
remote_app_id ? remote_app_id : "unknwon", remote_port ? remote_port : "unknwon");
static gboolean
test_check_remote_port()
{
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
gboolean found = FALSE;
messageport_error_e res;
static gboolean
test_check_trusted_remote_port()
{
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
gboolean found = FALSE;
messageport_error_e res;
test_send_message()
{
messageport_error_e res;
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
bundle *b = bundle_create ();
bundle_add (b, "Name", "Amarnath");
bundle_add (b, "Email", "amarnath.valluri@intel.com");
test_send_trusted_message()
{
messageport_error_e res;
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
bundle *b = bundle_create ();
bundle_add (b, "Name", "Amarnath");
bundle_add (b, "Email", "amarnath.valluri@intel.com");
{
messageport_error_e res;
int local_port_id = 0;
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
gchar result[32];
gboolean child_got_message = FALSE;
bundle *b = bundle_create ();
{
messageport_error_e res;
int local_port_id = 0;
- const gchar remote_app_id[128];
+ gchar remote_app_id[128];
gchar result[32];
gboolean child_got_message = FALSE;
bundle *b = bundle_create ();