Subversion Repositories HelenOS

Rev

Rev 4192 | Rev 4271 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4192 Rev 4243
Line 73... Line 73...
73
 
73
 
74
int measured_strings_receive( measured_string_ref * strings, char ** data, size_t count ){
74
int measured_strings_receive( measured_string_ref * strings, char ** data, size_t count ){
75
    ERROR_DECLARE;
75
    ERROR_DECLARE;
76
 
76
 
77
    size_t *        lengths;
77
    size_t *        lengths;
78
    int             index;
78
    size_t          index;
79
    size_t          length;
79
    size_t          length;
80
    char *          next;
80
    char *          next;
81
    ipc_callid_t    callid;
81
    ipc_callid_t    callid;
82
 
82
 
83
    if(( ! strings ) || ( ! data ) || ( count <= 0 )){
83
    if(( ! strings ) || ( ! data ) || ( count <= 0 )){
Line 129... Line 129...
129
 
129
 
130
int measured_strings_reply( const measured_string_ref strings, size_t count ){
130
int measured_strings_reply( const measured_string_ref strings, size_t count ){
131
    ERROR_DECLARE;
131
    ERROR_DECLARE;
132
 
132
 
133
    size_t *        lengths;
133
    size_t *        lengths;
134
    int             index;
134
    size_t          index;
135
    size_t          length;
135
    size_t          length;
136
    ipc_callid_t    callid;
136
    ipc_callid_t    callid;
137
 
137
 
138
    if(( ! strings ) || ( count <= 0 )){
138
    if(( ! strings ) || ( count <= 0 )){
139
        return EINVAL;
139
        return EINVAL;
Line 164... Line 164...
164
 
164
 
165
int measured_strings_return( int phone, measured_string_ref * strings, char ** data, size_t count ){
165
int measured_strings_return( int phone, measured_string_ref * strings, char ** data, size_t count ){
166
    ERROR_DECLARE;
166
    ERROR_DECLARE;
167
 
167
 
168
    size_t *    lengths;
168
    size_t *    lengths;
169
    int         index;
169
    size_t      index;
170
    char *      next;
170
    char *      next;
171
 
171
 
172
    if(( phone <= 0 ) || ( ! strings ) || ( ! data ) || ( count <= 0 )){
172
    if(( phone <= 0 ) || ( ! strings ) || ( ! data ) || ( count <= 0 )){
173
        return EINVAL;
173
        return EINVAL;
174
    }
174
    }
Line 205... Line 205...
205
 
205
 
206
int measured_strings_send( int phone, const measured_string_ref strings, size_t count ){
206
int measured_strings_send( int phone, const measured_string_ref strings, size_t count ){
207
    ERROR_DECLARE;
207
    ERROR_DECLARE;
208
 
208
 
209
    size_t *    lengths;
209
    size_t *    lengths;
210
    int         index;
210
    size_t      index;
211
 
211
 
212
    if(( phone <= 0 ) || ( ! strings ) || ( count <= 0 )){
212
    if(( phone <= 0 ) || ( ! strings ) || ( count <= 0 )){
213
        return EINVAL;
213
        return EINVAL;
214
    }
214
    }
215
    lengths = prepare_lengths( strings, count );
215
    lengths = prepare_lengths( strings, count );