Skip to content
Snippets Groups Projects
Commit 34fd1e8d authored by rswindell's avatar rswindell
Browse files

Exported telnet description functions.

parent 5fd967bc
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@
#include "gen_defs.h"
#include "telnet.h"
const char *telnet_cmd_desc(uchar cmd)
const char* DLLCALL telnet_cmd_desc(uchar cmd)
{
static char unknown[32];
......@@ -112,7 +112,7 @@ char* telnet_option_descriptions[]={
,"TN3270E"
};
const char *telnet_opt_desc(uchar opt)
const char* DLLCALL telnet_opt_desc(uchar opt)
{
static char unknown[32];
......
......@@ -110,11 +110,36 @@ enum {
#define TELNET_MODE_ECHO (1<<1)
#define TELNET_MODE_GATE (1<<2) // Pass-through telnet commands/responses
#ifdef DLLEXPORT
#undef DLLEXPORT
#endif
#ifdef DLLCALL
#undef DLLCALL
#endif
#ifdef _WIN32
#ifdef SBBS_EXPORTS
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#ifdef __BORLANDC__
#define DLLCALL __stdcall
#else
#define DLLCALL
#endif
#else
#define DLLEXPORT
#define DLLCALL
#endif
#ifdef __cplusplus
extern "C" {
#endif
const char *telnet_cmd_desc(uchar cmd);
const char *telnet_opt_desc(uchar opt);
DLLEXPORT const char* DLLCALL telnet_cmd_desc(uchar cmd);
DLLEXPORT const char* DLLCALL telnet_opt_desc(uchar opt);
#ifdef __cplusplus
}
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment