Hi,

>    I am tying to add one method in src/manager.c file in connman-0.59.
> 
>   I added "RequestLoadDriver" method as below.
> 
>   static GDBusMethodTable manager_methods[] = {
>         { "GetProperties",     "",      "a{sv}", get_properties     },
>         { "SetProperty",       "sv",    "",      set_property       },
>         { "GetState",          "",      "s",     get_state          },
>         { "CreateProfile",     "s",     "o",     create_profile     },
>         { "RemoveProfile",     "o",     "",      remove_profile     },
>         { "RemoveProvider",    "s",     "",      remove_provider    },
>         { "RequestScan",       "s",     "",      request_scan       },
> *        { "RequestLoadDriver",       "s",     "o",
> request_load_driver    },
> *        { "EnableTechnology",  "s",     "",      enable_technology,
> 
> I had defined
> static DBusMessage *request_load_driver(DBusConnection *conn,
>                                         DBusMessage *msg, void *data)
> 
> I compiled and executed with "connmand -d -n".
> 
> Now when I try to request load driver using dbus-send
> # dbus-send --system --print-reply --dest=org.moblin.connman /
> org.moblin.connman.Manager.RequestLoadDriver string:"LoadDriver"
> variant:boolean:true
> *Error org.freedesktop.DBus.Error.UnknownMethod: Method "RequestLoadDriver"
> with signature "sv" on interface "org.moblin.connman.Manager" doesn't exist*

the signature has to match for obvious reasons.

However what is this method suppose to be doing anyway?

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to