blob: 215727cf276ece23191275ccc4e6107c571b008e [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <pthread.h>
#include <sys/epoll.h>
#include <fcntl.h>
#include <signal.h>
#include "mbtk_type.h"
#include "mbtk_info.h"
#include "atchannel.h"
#include "at_tok.h"
#include "mbtk_utils.h"
#include "info_data.h"
void pack_rsp_send(int fd, int info_id, const void* data, int data_len);
//void net_list_free(void *data);
// Return MBTK_INFO_ERR_SUCCESS,will call pack_error_send() to send RSP.
// Otherwise, do not call pack_error_send().
mbtk_info_err_enum pb_pack_req_process(sock_client_info_t* cli_info, mbtk_info_pack_t* pack)
{
mbtk_info_err_enum err = MBTK_INFO_ERR_SUCCESS;
int cme_err = MBTK_INFO_ERR_CME_NON;
switch(pack->info_id)
{
case MBTK_INFO_ID_PB_STATE_REQ:
{
if(pack->data_len == 0 || pack->data == NULL)
{
err = MBTK_INFO_ERR_UNSUPPORTED;
}
else // Set
{
}
break;
}
default:
{
err = MBTK_INFO_ERR_REQ_UNKNOWN;
LOG("Unknown request : %s", id2str(pack->info_id));
break;
}
}
return err;
}