summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-08-18 22:28:47 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-08-19 18:35:07 -0500
commita5617250a1b2ff2514b02bc20bcf38df5765cbdc (patch)
treef5cd92b4d7b01ffbf308b6d3ff37f7c105be1098
parent99cf14efcfdc5c3a59b23e409559d0fd867842f0 (diff)
downloadofono-a5617250a1b2ff2514b02bc20bcf38df5765cbdc.tar.bz2
Move mcc & mnc defines to types.h
-rw-r--r--include/types.h4
-rw-r--r--src/driver.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/types.h b/include/types.h
index 5c1322cc..54cb3f40 100644
--- a/include/types.h
+++ b/include/types.h
@@ -26,6 +26,10 @@
extern "C" {
#endif
+/* MCC is always three digits. MNC is either two or three digits */
+#define OFONO_MAX_MCC_LENGTH 3
+#define OFONO_MAX_MNC_LENGTH 3
+
typedef void (*ofono_destroy_func)(void *data);
/* 27.007 Section 6.2 */
diff --git a/src/driver.h b/src/driver.h
index 1101c088..ea357131 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -44,10 +44,6 @@ struct ofono_call {
* */
#define OFONO_MAX_OPERATOR_NAME_LENGTH 63
-/* MCC is always three digits. MNC is either two or three digits */
-#define OFONO_MAX_MCC_LENGTH 3
-#define OFONO_MAX_MNC_LENGTH 3
-
struct ofono_network_operator {
char name[OFONO_MAX_OPERATOR_NAME_LENGTH + 1];
char mcc[OFONO_MAX_MCC_LENGTH + 1];