-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparse_pkt_common.h
23 lines (19 loc) · 992 Bytes
/
parse_pkt_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*********************************************************
*project: Line communication charges supermarket
*filename: parse_pkt_common.h
*version: 0.1
*purpose: some common function have relationship with parse packet
*developer: ssurui, Xi'an Jiaotong University (Drum Team)
*data: 2007-1-22
*********************************************************/
#ifndef PARSE_PKT_COMMON_H
#define PARSE_PKT_COMMON_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../config_h_c/config.h"
int FindCompanyIndexFromPacket(char *pkt, int pkt_len, int pkt_postion, int *company_index);
int FindServiceTypeIndexFromPacket(char *pkt, int pkt_len, int pkt_postion, int company_index, int *service_type_index);
int Fill_serial_number_to_packet(char *pkt, int pkt_postion, int company_index, int service_type_index, char *serial_number);
int Get_money_from_packet(char *pkt, int pkt_postion, int company_index, int service_type_index, char *money);
#endif