[Midnightbsd-cvs] src [6495] trunk/lib/libmport: make mport_get_osrelease a public api
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Dec 15 01:32:05 EST 2013
Revision: 6495
http://svnweb.midnightbsd.org/src/?rev=6495
Author: laffer1
Date: 2013-12-15 01:32:04 -0500 (Sun, 15 Dec 2013)
Log Message:
-----------
make mport_get_osrelease a public api
Modified Paths:
--------------
trunk/lib/libmport/Makefile
trunk/lib/libmport/mport.h
trunk/lib/libmport/mport_private.h
trunk/lib/libmport/util.c
Modified: trunk/lib/libmport/Makefile
===================================================================
--- trunk/lib/libmport/Makefile 2013-12-15 06:27:48 UTC (rev 6494)
+++ trunk/lib/libmport/Makefile 2013-12-15 06:32:04 UTC (rev 6495)
@@ -13,6 +13,8 @@
SHLIB_MAJOR= 1
MAN= mport.3
+NO_PROFILE=
+
DPADD= ${LIBMD} ${LIBARCHIVE} ${LIBBZP2} ${LIBLZMA} ${LIBZ} ${LIBFETCH} ${LIBSQLITE3}
LDADD= -lmd -larchive -lbz2 -llzma -lz -lfetch -lsqlite3
Modified: trunk/lib/libmport/mport.h
===================================================================
--- trunk/lib/libmport/mport.h 2013-12-15 06:27:48 UTC (rev 6494)
+++ trunk/lib/libmport/mport.h 2013-12-15 06:32:04 UTC (rev 6495)
@@ -1,5 +1,6 @@
-/* $MidnightBSD: src/lib/libmport/mport.h,v 1.27 2013/09/07 19:49:51 laffer1 Exp $
+/* $MidnightBSD$
*
+ * Copyright (c) 2013 Lucas Holt
* Copyright (c) 2007-2009 Chris Reinhardt
* All rights reserved.
*
@@ -214,6 +215,7 @@
int mport_verify_hash(const char *, const char *);
int mport_file_exists(const char *);
char * mport_version(void);
+char * mport_get_osrelease(void);
#endif /* ! defined _MPORT_H */
Modified: trunk/lib/libmport/mport_private.h
===================================================================
--- trunk/lib/libmport/mport_private.h 2013-12-15 06:27:48 UTC (rev 6494)
+++ trunk/lib/libmport/mport_private.h 2013-12-15 06:32:04 UTC (rev 6495)
@@ -88,7 +88,6 @@
int mport_run_asset_exec(mportInstance *, const char *, const char *, const char *);
void mport_free_vec(void *);
int mport_decompress_bzip2(const char *, const char *);
-char* mport_get_osrelease(void);
/* Mport Bundle (a file containing packages) */
Modified: trunk/lib/libmport/util.c
===================================================================
--- trunk/lib/libmport/util.c 2013-12-15 06:27:48 UTC (rev 6494)
+++ trunk/lib/libmport/util.c 2013-12-15 06:32:04 UTC (rev 6495)
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__MBSDID("$MidnightBSD: src/lib/libmport/util.c,v 1.35 2013/08/17 19:35:00 laffer1 Exp $");
+__MBSDID("$MidnightBSD$");
#include <sys/types.h>
#include <sys/sysctl.h>
@@ -486,7 +486,7 @@
return MPORT_OK;
}
-char *
+MPORT_PUBLIC_API char *
mport_get_osrelease(void)
{
char osrelease[128];
More information about the Midnightbsd-cvs
mailing list