OSDN Git Service

Add documentation for RIL_SAP_INIT in ril.h
authorSanket Padawe <sanketpadawe@google.com>
Fri, 1 Apr 2016 00:37:23 +0000 (17:37 -0700)
committerSanket Padawe <sanketpadawe@google.com>
Fri, 1 Apr 2016 00:37:23 +0000 (17:37 -0700)
Bug: 27726715
Change-Id: I3c48820f689052a89986191ccb08754197eea229

include/telephony/ril.h

index e034b2f..59a7fe2 100644 (file)
@@ -5867,6 +5867,22 @@ struct RIL_Env {
  */
 const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv);
 
+/**
+ *  If BT SAP(SIM Access Profile) is supported, then RIL implementations must define RIL_SAP_Init
+ *  for initializing RIL_RadioFunctions used for BT SAP communcations. It is called whenever RILD
+ *  starts or modem restarts. Returns handlers for SAP related request that are made on SAP
+ *  sepecific socket, analogous to the RIL_RadioFunctions returned by the call to RIL_Init
+ *  and used on the general RIL socket.
+ *  argc and argv will be command line arguments intended for the RIL implementation
+ *  Return NULL on error.
+ *
+ * @param env is environment point defined as RIL_Env
+ * @param argc number of arguments
+ * @param argv list fo arguments
+ *
+ */
+const RIL_RadioFunctions *RIL_SAP_Init(const struct RIL_Env *env, int argc, char **argv);
+
 #else /* RIL_SHLIB */
 
 /**