~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to src/common.h

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
        SS_MT_CALL_DEFLECTED =                  9,
123
123
};
124
124
 
125
 
enum pin_type {
126
 
        PIN_TYPE_NONE,
127
 
        PIN_TYPE_PIN,
128
 
        PIN_TYPE_PUK,
129
 
        PIN_TYPE_NET,
130
 
};
131
 
 
132
125
/* 27.007 Section 10.1.10 */
133
126
enum context_status {
134
127
        CONTEXT_STATUS_DEACTIVATED = 0,
137
130
 
138
131
const char *telephony_error_to_str(const struct ofono_error *error);
139
132
 
 
133
gboolean valid_number_format(const char *number, int length);
140
134
gboolean valid_phone_number_format(const char *number);
 
135
gboolean valid_long_phone_number_format(const char *number);
141
136
const char *phone_number_to_string(const struct ofono_phone_number *ph);
142
137
void string_to_phone_number(const char *str, struct ofono_phone_number *ph);
143
138
 
160
155
 
161
156
const char *bearer_class_to_string(enum bearer_class cls);
162
157
 
163
 
gboolean is_valid_pin(const char *pin, enum pin_type type);
164
 
 
165
158
const char *registration_status_to_string(int status);
166
159
const char *registration_tech_to_string(int tech);
167
160
const char *packet_bearer_to_string(int bearer);