36#ifndef __APPS_INCLUDE_SYSTEM_XMODEM_H
37#define __APPS_INCLUDE_SYSTEM_XMODEM_H
43#define XM_ERR_CANCEL (-1)
44#define XM_ERR_NOSYNC (-2)
45#define XM_ERR_RETRYOUT (-3)
46#define XM_ERR_XMIT (-4)
47#define XM_ERR_XMIT_NOACK (-5)
48#define XM_ERR_INVAL (-6)
49#define XM_ERR_NOSPC (-7)
56typedef void *XMHANDLE;
59#if defined(__cplusplus)
60#define EXTERN extern "C"
86XMHANDLE xmodemHandleInit(
int fd);
103int xmodemHandleRelease(XMHANDLE handle);
122int xmodemReceive(XMHANDLE handle,
unsigned char *dest,
int destsz);
141int xmodemTransmit(XMHANDLE handle,
unsigned char *src,
int srcsz);
144#if defined(__cplusplus)