]> git.sur5r.net Git - ngadmin/blobdiff - lib/include/ngadmin.h
Factorize string related functions
[ngadmin] / lib / include / ngadmin.h
index 7f8a5043a84d680cadc3915aceb8347f2fb03139..50fffa9684b3bb0017b62e65319c1039d6e09286 100644 (file)
@@ -246,6 +246,15 @@ extern "C" {
 struct ngadmin* ngadmin_init (const char *iface);
 
 
+/**
+ * Convert error to string.
+ * This function returns a string corresponding to the numerical error code.
+ * @param error The numerical error code to convert.
+ * @return A pointer to a static string or NULL if the error code is invalid.
+ */
+const char* ngadmin_errorStr (int error);
+
+
 /**
  * Close NgAdmin library. 
  * This function frees the resources used by the library. You really should