mirror of git://git.sysmocom.de/ofono
sim-auth: prep simauth/dbus headers
Added new dbus interfaces for SimAuth module as well as function prototype definitions to simauth header. org.ofono.SimAuthentication: Interface to hold the auth object to type mapping property org.ofono.USimApplication: Application with USim functionality (GSM/UMTS auth) org.ofono.ISimApplication: Application with ISim functionality (IMS auth)
This commit is contained in:
parent
a8f609727d
commit
fd9b13ac42
|
@ -58,6 +58,9 @@ extern "C" {
|
||||||
#define OFONO_LOCATION_REPORTING_INTERFACE OFONO_SERVICE ".LocationReporting"
|
#define OFONO_LOCATION_REPORTING_INTERFACE OFONO_SERVICE ".LocationReporting"
|
||||||
#define OFONO_GNSS_INTERFACE "org.ofono.AssistedSatelliteNavigation"
|
#define OFONO_GNSS_INTERFACE "org.ofono.AssistedSatelliteNavigation"
|
||||||
#define OFONO_GNSS_POSR_AGENT_INTERFACE "org.ofono.PositioningRequestAgent"
|
#define OFONO_GNSS_POSR_AGENT_INTERFACE "org.ofono.PositioningRequestAgent"
|
||||||
|
#define OFONO_USIM_APPLICATION_INTERFACE "org.ofono.USimApplication"
|
||||||
|
#define OFONO_ISIM_APPLICATION_INTERFACE "org.ofono.ISimApplication"
|
||||||
|
#define OFONO_SIM_AUTHENTICATION_INTERFACE "org.ofono.SimAuthentication"
|
||||||
#define OFONO_HANDSFREE_INTERFACE OFONO_SERVICE ".Handsfree"
|
#define OFONO_HANDSFREE_INTERFACE OFONO_SERVICE ".Handsfree"
|
||||||
#define OFONO_SIRI_INTERFACE OFONO_SERVICE ".Siri"
|
#define OFONO_SIRI_INTERFACE OFONO_SERVICE ".Siri"
|
||||||
#define OFONO_NETMON_INTERFACE OFONO_SERVICE ".NetworkMonitor"
|
#define OFONO_NETMON_INTERFACE OFONO_SERVICE ".NetworkMonitor"
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <ofono/types.h>
|
#include <ofono/types.h>
|
||||||
|
|
||||||
struct ofono_sim_auth;
|
struct ofono_sim_auth;
|
||||||
|
@ -34,6 +36,15 @@ typedef void (*ofono_sim_list_apps_cb_t)(const struct ofono_error *error,
|
||||||
const unsigned char *dataobj,
|
const unsigned char *dataobj,
|
||||||
int len, void *data);
|
int len, void *data);
|
||||||
|
|
||||||
|
typedef void (*ofono_sim_open_channel_cb_t)(const struct ofono_error *error,
|
||||||
|
int session_id, void *data);
|
||||||
|
|
||||||
|
typedef void (*ofono_sim_close_channel_cb_t)(const struct ofono_error *error,
|
||||||
|
void *data);
|
||||||
|
|
||||||
|
typedef void (*ofono_logical_access_cb_t)(const struct ofono_error *error,
|
||||||
|
const uint8_t *resp, uint16_t len, void *data);
|
||||||
|
|
||||||
struct ofono_sim_auth_driver {
|
struct ofono_sim_auth_driver {
|
||||||
const char *name;
|
const char *name;
|
||||||
int (*probe)(struct ofono_sim_auth *sa, unsigned int vendor,
|
int (*probe)(struct ofono_sim_auth *sa, unsigned int vendor,
|
||||||
|
@ -41,7 +52,14 @@ struct ofono_sim_auth_driver {
|
||||||
void (*remove)(struct ofono_sim_auth *sa);
|
void (*remove)(struct ofono_sim_auth *sa);
|
||||||
|
|
||||||
void (*list_apps)(struct ofono_sim_auth *sa,
|
void (*list_apps)(struct ofono_sim_auth *sa,
|
||||||
ofono_sim_list_apps_cb_t cb, void *data);
|
ofono_sim_list_apps_cb_t cb, void *data);
|
||||||
|
void (*open_channel)(struct ofono_sim_auth *sa, const uint8_t *aid,
|
||||||
|
ofono_sim_open_channel_cb_t cb, void *data);
|
||||||
|
void (*close_channel)(struct ofono_sim_auth *sa, int session_id,
|
||||||
|
ofono_sim_close_channel_cb_t cb, void *data);
|
||||||
|
void (*logical_access)(struct ofono_sim_auth *sa,
|
||||||
|
int session_id, const uint8_t *pdu, uint16_t len,
|
||||||
|
ofono_logical_access_cb_t cb, void *data);
|
||||||
};
|
};
|
||||||
|
|
||||||
int ofono_sim_auth_driver_register(const struct ofono_sim_auth_driver *d);
|
int ofono_sim_auth_driver_register(const struct ofono_sim_auth_driver *d);
|
||||||
|
|
Loading…
Reference in New Issue