summaryrefslogtreecommitdiffstats
path: root/axlib.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-04-21 09:15:52 +0200
committerRalf Baechle <ralf@linux-mips.org>1999-04-21 09:15:52 +0200
commit5c8a43ce348cdac4fac0a6ee470342ff7dab3a64 (patch)
treed72fee9ca8a12695bec247fa64288703ebf8aa27 /axlib.h
parent60368d2e0bd1a81c64b1a30b0819232866ccedb4 (diff)
Import ax25-lib 0.0.2 from tarballax25-lib-0.0.2
Diffstat (limited to 'axlib.h')
-rw-r--r--axlib.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/axlib.h b/axlib.h
index 39a09be..b6e36c9 100644
--- a/axlib.h
+++ b/axlib.h
@@ -19,6 +19,11 @@ extern "C" {
#endif
/*
+ * Libax25 version.
+ */
+extern char version[];
+
+/*
* The special "null" address, used as the default callsign in routing and
* in other places.
*/
@@ -28,7 +33,7 @@ extern ax25_address null_ax25_address;
* This function converts an ASCII representation of a callsign into network
* format. It returns -1 on error, 0 otherwise.
*/
-extern int convert_call_entry(const char *, char *);
+extern int ax25_aton_entry(const char *, char *);
/*
* This converts a string with optional digipeaters into a structure understood
@@ -40,53 +45,53 @@ extern int convert_call_entry(const char *, char *);
*
* On error a -1 is returned, otherwise the length of the structure is returned.
*/
-extern int convert_call(char *, struct full_sockaddr_ax25 *);
+extern int ax25_aton(const char *, struct full_sockaddr_ax25 *);
/*
* Similar to convert_call above except the callsign(s) are not held in a
* string but in a NULL terminated array of pointers to the strings.
* On error a -1 is returned, otherwise the length of the structure is returned.
*/
-extern int convert_call_arglist(char ** , struct full_sockaddr_ax25 *);
+extern int ax25_aton_arglist(char ** , struct full_sockaddr_ax25 *);
/*
* This function converts an ASCII representation of a Rose address into
* network format. It returns -1 on error, 0 otherwise. The address must be
* ten numbers long.
*/
-extern int convert_rose_address(const char *, char *);
+extern int rose_aton(const char *, char *);
/*
* This function returns the textual representation of a callsign in
* network format. The data returned is in a statically allocated area, and
* subsequent calls will destroy previous callsigns returned.
*/
-extern char *ax2asc(ax25_address *);
+extern char *ax25_ntoa(ax25_address *);
/*
* This function returns the textual representation of a Rose address in
* network format. The data returned is in a statically allocated area, and
* subsequent calls will destroy previous callsigns returned.
*/
-extern char *rose2asc(rose_address *);
+extern char *rose_ntoa(rose_address *);
/*
* Compares two AX.25 callsigns in network format. Returns a 0 if they are
* identical, 1 if they differ, or 2 if only the SSIDs differ.
*/
-extern int ax25cmp(ax25_address *, ax25_address *);
+extern int ax25_cmp(ax25_address *, ax25_address *);
/*
* Compares two Rose addresses in network format. Returns a 0 if they are
* identical, 1 if they differ.
*/
-extern int rosecmp(rose_address *, rose_address *);
+extern int rose_cmp(rose_address *, rose_address *);
/*
* Validates an AX.25 callsign, returns TRUE if it is valid, or FALSE if it
* is not. The callsign should be AX.25 shifted format.
*/
-extern int ax25validate(char *);
+extern int ax25_validate(char *);
/*
* Converts the giver string to upper case. It returns a pointer to the