Image download works now.

FossilOrigin-Name: 5d7b80e25523f943c8dfbef4d31649dfb128df5d79c4c7808de1f2ea122527f1
This commit is contained in:
7u83@mail.ru
2015-04-13 09:00:46 +00:00
parent 86c06c99b0
commit a9a5b0406c
20 changed files with 296 additions and 117 deletions

View File

@ -19,24 +19,42 @@
#ifndef __LWAPP_H
#define __LWAPP_H
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>
//#include "acinfo.h"
#include "bstr.h"
#include "wtpinfo.h"
/* version */
/**
* @defgroup LWAPPConstants LWAPP Constats
* @{
*/
/** LWAPP Version */
#define LW_VERSION 0
/** LWAPP Control Port */
#define LWAPP_CONTROL_PORT 12223
/** LWAPP Control Port as string */
#define LWAPP_CONTROL_PORT_STR "12223"
/** Block Size for Image Data */
#define LW_BLOCKSIZE_IMAGE_DATA 1024
/**@}*/
#define LW_VENDOR_ID_CISCO 4232704
/* ports */
#define LWAPP_CONTROL_PORT 12223
#define LWAPP_CONTROL_PORT_STR "12223"
/* macros to access transport header */
#define LWTH_GET_VERSION(th) (th[0]>>6)
@ -234,6 +252,7 @@ extern const char * lw_vendor_id_to_str(uint32_t vendor_id);
extern const char * lw_elem_id_to_str(int elem_id);
extern const char * lw_msg_id_to_str(int msg_id);
extern int lw_put_image_data(uint8_t *dst,FILE *infile);
#endif