This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2009-02-16 02:56:15 -05:00
|
|
|
#ifndef __CFTP_H
|
|
|
|
#define __CFTP_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Public protocol API for CFTP. Any function defined in here will be available
|
|
|
|
* in any part of the application that needs it.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define MSGLEN 128
|
|
|
|
#define ERRMSGLEN 256
|
|
|
|
#define CMDLEN 5
|
|
|
|
int validate_command(const char *);
|
|
|
|
void split_command(char *, char *, char *);
|
|
|
|
void error(const char *);
|
|
|
|
void debug(const char *, const char *);
|
2009-02-18 03:30:53 -05:00
|
|
|
void send_message(int, char *);
|
2009-02-16 02:56:15 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|