libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] Re: compiling libmicrohttpd 0.4.1 on Windows under MinGW


From: Nils Durner
Subject: [libmicrohttpd] Re: compiling libmicrohttpd 0.4.1 on Windows under MinGW/MSYS
Date: Wed, 01 Apr 2009 21:47:01 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Hi Brecht,

I have added MHD_get_version() to the API, see below.


Best,

Nils




-------- Original-Nachricht --------
Betreff:        [GNUnet-SVN] r8369 - in libmicrohttpd: . src/daemon src/include
Datum:  Wed, 1 Apr 2009 13:34:19 -0600
Von:    address@hidden
An:     address@hidden



Author: durner
Date: 2009-04-01 13:34:19 -0600 (Wed, 01 Apr 2009)
New Revision: 8369

Modified:
   libmicrohttpd/ChangeLog
   libmicrohttpd/src/daemon/daemon.c
   libmicrohttpd/src/include/microhttpd.h
Log:
add MHD_get_version()

Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog     2009-04-01 01:08:08 UTC (rev 8368)
+++ libmicrohttpd/ChangeLog     2009-04-01 19:34:19 UTC (rev 8369)
@@ -1,3 +1,6 @@
+Wed Apr  1 21:33:05 CEST 2009
+   Added MHD_get_version(). -ND
+
 Wed Mar 18 22:59:07 MDT 2009
         Releasing libmicrohttpd 0.4.1. -CG
 

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2009-04-01 01:08:08 UTC (rev 8368)
+++ libmicrohttpd/src/daemon/daemon.c   2009-04-01 19:34:19 UTC (rev 8369)
@@ -64,6 +64,8 @@
 #endif
 #endif
 
+const static char mhd_package_version[] = PACKAGE_VERSION;
+
 /**
  * Trace up to and return master daemon. If the supplied daemon
  * is a master, then return the daemon itself.
@@ -1499,6 +1501,17 @@
   return NULL;
 }
 
+/**
+ * Obtain the version of this library
+ * 
+ * @return static version string, e.g. "0.4.1"
+ */
+const char *
+MHD_get_version (void)
+{
+  return mhd_package_version;
+}
+
 #ifndef WINDOWS
 
 static struct sigaction sig;

Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h      2009-04-01 01:08:08 UTC (rev 
8368)
+++ libmicrohttpd/src/include/microhttpd.h      2009-04-01 19:34:19 UTC (rev 
8369)
@@ -1192,6 +1192,13 @@
                                                  enum MHD_DaemonInfoType
                                                  infoType, ...);
 
+/**
+ * Obtain the version of this library
+ * 
+ * @return static version string, e.g. "0.4.1"
+ */
+const char* MHD_get_version(void);
+
 #if 0                           /* keep Emacsens' auto-indent happy */
 {
 #endif



_______________________________________________
GNUnet-SVN mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnunet-svn








reply via email to

[Prev in Thread] Current Thread [Next in Thread]