OSDN Git Service

Move struct def out of an #ifdef
authorRobert Greenwalt <rgreenwalt@google.com>
Wed, 15 Jun 2016 21:59:38 +0000 (14:59 -0700)
committerRobert Greenwalt <rgreenwalt@google.com>
Wed, 15 Jun 2016 22:10:04 +0000 (22:10 +0000)
It was only visible if the vendor used a particular
style (SHLIB).

bug:28961371
bug:28567303
Change-Id: I54256e17170a69bdb6fbb9b38924b42906b85896

include/telephony/ril.h

index d88e168..736f487 100644 (file)
@@ -5890,6 +5890,19 @@ typedef struct {
                                    NULL if no value. */
 } RIL_SimAuthentication;
 
+typedef struct {
+    int cid;             /* Context ID, uniquely identifies this call */
+    char *bearer_proto;  /* One of the PDP_type values in TS 27.007 section 10.1.1.
+                            For example, "IP", "IPV6", "IPV4V6" */
+    int pco_id;          /* The protocol ID for this box.  Note that only IDs from
+                            FF00H - FFFFH are accepted.  If more than one is included
+                            from the network, multiple calls should be made to send all
+                            of them. */
+    int contents_length; /* The number of octets in the contents. */
+    char *contents;      /* Carrier-defined content.  It is binary, opaque and
+                            loosely defined in LTE Layer 3 spec 24.008 */
+} RIL_PCO_Data;
+
 #ifdef RIL_SHLIB
 struct RIL_Env {
     /**
@@ -6045,19 +6058,6 @@ void RIL_onUnsolicitedResponse(int unsolResponse, const void *data,
 void RIL_requestTimedCallback (RIL_TimedCallback callback,
                                void *param, const struct timeval *relativeTime);
 
-typedef struct {
-  int cid;             /* Context ID, uniquely identifies this call */
-  char *bearer_proto;  /* One of the PDP_type values in TS 27.007 section 10.1.1.
-                          For example, "IP", "IPV6", "IPV4V6" */
-  int pco_id;          /* The protocol ID for this box.  Note that only IDs from
-                          FF00H - FFFFH are accepted.  If more than one is included
-                          from the network, multiple calls should be made to send all
-                          of them. */
-  int contents_length; /* The number of octets in the contents. */
-  char *contents;      /* Carrier-defined content.  It is binary, opaque and
-                          loosely defined in LTE Layer 3 spec 24.008 */
-} RIL_PCO_Data;
-
 #endif /* RIL_SHLIB */
 
 #ifdef __cplusplus