blob: 34611cb95e85ebc67773c68ac75cafb6bf6dfd8e [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4#include <errno.h>
5#include <sys/socket.h>
6#include <sys/un.h>
7#include <netinet/in.h>
8#include <pthread.h>
9#include <sys/epoll.h>
10#include <fcntl.h>
11#include <signal.h>
12
13#include "mbtk_type.h"
14#include "mbtk_info.h"
15#include "atchannel.h"
16#include "at_tok.h"
17#include "mbtk_utils.h"
18#include "info_data.h"
19
20void pack_rsp_send(int fd, int info_id, const void* data, int data_len);
21
22//void net_list_free(void *data);
23// Return MBTK_INFO_ERR_SUCCESS,will call pack_error_send() to send RSP.
24// Otherwise, do not call pack_error_send().
25mbtk_info_err_enum pb_pack_req_process(sock_client_info_t* cli_info, mbtk_info_pack_t* pack)
26{
27 mbtk_info_err_enum err = MBTK_INFO_ERR_SUCCESS;
b.liu9e8584b2024-11-06 19:21:28 +080028// int cme_err = MBTK_INFO_ERR_CME_NON;
liubin281ac462023-07-19 14:22:54 +080029 switch(pack->info_id)
30 {
31 case MBTK_INFO_ID_PB_STATE_REQ:
32 {
33 if(pack->data_len == 0 || pack->data == NULL)
34 {
35 err = MBTK_INFO_ERR_UNSUPPORTED;
36 }
37 else // Set
38 {
39
40 }
41 break;
42 }
43 default:
44 {
45 err = MBTK_INFO_ERR_REQ_UNKNOWN;
46 LOG("Unknown request : %s", id2str(pack->info_id));
47 break;
48 }
49 }
50
51 return err;
52}
53
54