Make rpmChrootIn/Out() accessible to plugins
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Jun 2010 11:49:01 +0000 (14:49 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Jun 2010 11:49:01 +0000 (14:49 +0300)
- the exec plugin was using a private copy of rpmchroot.c to avoid
  RPM_GNUC_INTERNAL on the API, better let the plugins use librpm
  state instead
- the chroot API really belongs to librpmio but for now...

lib/rpmchroot.h
plugins/Makefile.am

index 0c2be6b..858559a 100644 (file)
@@ -16,14 +16,14 @@ int rpmChrootSet(const char *rootDir);
  * Enter chroot if necessary.
  * return              -1 on error, 0 on success.
  */
-RPM_GNUC_INTERNAL
+/* RPM_GNUC_INTERNAL */
 int rpmChrootIn(void);
 
 /** \ingroup rpmchroot
  * Return from chroot if necessary.
  * return              -1 on error, 0 succes.
  */
-RPM_GNUC_INTERNAL
+/* RPM_GNUC_INTERNAL */
 int rpmChrootOut(void);
 
 /** \ingroup rpmchroot
index b0af6b9..41a9ca4 100644 (file)
@@ -15,5 +15,5 @@ pluginsdir = $(rpmconfigdir)/plugins
 
 plugins_LTLIBRARIES = exec.la
 
-exec_la_SOURCES = collection.h ../lib/rpmchroot.c exec.c
+exec_la_SOURCES = collection.h exec.c
 exec_la_LIBADD = $(top_builddir)/lib/librpm.la $(top_builddir)/rpmio/librpmio.la