}
/* Open the control channel */
- gsm0710_write_frame(ctx, 0, GSM0710_OPEN_CHANNEL, 0, 0);
+ gsm0710_write_frame(ctx, 0, GSM0710_OPEN_CHANNEL, NULL, 0);
/* Open previously-used channels if this is a reinit.
Send "ERROR" on re-opened channels, to cause higher
for (channel = 1; channel <= GSM0710_MAX_CHANNELS; ++channel) {
if (is_channel_used(ctx, channel)) {
gsm0710_write_frame(ctx, channel,
- GSM0710_OPEN_CHANNEL, 0, 0);
+ GSM0710_OPEN_CHANNEL, NULL, 0);
if (ctx->deliver_data)
ctx->deliver_data(ctx, channel,
"\r\nERROR\r\n", 9);
for (channel = 1; channel <= GSM0710_MAX_CHANNELS; ++channel) {
if (is_channel_used(ctx, channel)) {
gsm0710_write_frame(ctx, channel,
- GSM0710_CLOSE_CHANNEL, 0, 0);
+ GSM0710_CLOSE_CHANNEL, NULL, 0);
}
}
gsm0710_write_frame(ctx, 0, GSM0710_DATA, terminate, 2);
return 1; /* Channel is already open */
mark_channel_used(ctx, channel);
if (!ctx->server)
- gsm0710_write_frame(ctx, channel, GSM0710_OPEN_CHANNEL, 0, 0);
+ gsm0710_write_frame(ctx, channel,
+ GSM0710_OPEN_CHANNEL, NULL, 0);
return 1;
}
return; /* Channel is already closed */
mark_channel_unused(ctx, channel);
if (!ctx->server)
- gsm0710_write_frame(ctx, channel, GSM0710_CLOSE_CHANNEL, 0, 0);
+ gsm0710_write_frame(ctx, channel,
+ GSM0710_CLOSE_CHANNEL, NULL, 0);
}
/* Determine if a specific channel is open */