~cyphermox/ubuntu/natty/ofono/release-0.41

« back to all changes in this revision

Viewing changes to include/types.h

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2011-02-11 02:17:20 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: mathieu-tl@ubuntu.com-20110211021720-cvxc3erw1keomunj
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        OFONO_CLIR_OPTION_SUPPRESSION
50
50
};
51
51
 
52
 
/* 27.007 Section 6.2 */
53
 
enum ofono_cug_option {
54
 
        OFONO_CUG_OPTION_DEFAULT = 0,
55
 
        OFONO_CUG_OPTION_INVOCATION = 1,
56
 
};
57
 
 
58
52
enum ofono_error_type {
59
53
        OFONO_ERROR_TYPE_NO_ERROR = 0,
60
54
        OFONO_ERROR_TYPE_CME,
76
70
        int error;
77
71
};
78
72
 
79
 
#define OFONO_MAX_PHONE_NUMBER_LENGTH 20
 
73
#define OFONO_MAX_PHONE_NUMBER_LENGTH 80
 
74
#define OFONO_MAX_CALLER_NAME_LENGTH 80
80
75
 
81
76
struct ofono_phone_number {
82
77
        char number[OFONO_MAX_PHONE_NUMBER_LENGTH + 1];
83
78
        int type;
84
79
};
85
80
 
 
81
/* Length of NUM_FIELDS in 3GPP2 C.S0005-E v2.0 */
 
82
#define OFONO_CDMA_MAX_PHONE_NUMBER_LENGTH 256
 
83
 
 
84
struct ofono_cdma_phone_number {
 
85
        /* char maps to max size of CHARi (8 bit) in 3GPP2 C.S0005-E v2.0 */
 
86
        char number[OFONO_CDMA_MAX_PHONE_NUMBER_LENGTH];
 
87
};
 
88
 
86
89
struct ofono_call {
87
90
        unsigned int id;
88
91
        int type;
89
92
        int direction;
90
93
        int status;
91
 
        ofono_bool_t mpty;
92
94
        struct ofono_phone_number phone_number;
 
95
        struct ofono_phone_number called_number;
 
96
        char name[OFONO_MAX_CALLER_NAME_LENGTH + 1];
93
97
        int clip_validity;
 
98
        int cnap_validity;
94
99
};
95
100
 
96
101
struct ofono_network_time {
100
105
        int mday;       /* Day of month [1..31], -1 if unavailable */
101
106
        int mon;        /* Month [1..12], -1 if unavailable */
102
107
        int year;       /* Current year, -1 if unavailable */
103
 
        int dst;        /* Current adjustment, in seconds */
 
108
        int dst;        /* Current adjustment, in hours */
104
109
        int utcoff;     /* Offset from UTC in seconds */
105
110
};
106
111
 
111
116
};
112
117
 
113
118
const char *ofono_uuid_to_str(const struct ofono_uuid *uuid);
 
119
void ofono_call_init(struct ofono_call *call);
114
120
 
115
121
#ifdef __cplusplus
116
122
}