Mailinglist Archive: zypp-commit (38 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Add compat Misc.h
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Tue, 4 Aug 2009 16:31:55 +0200
  • Message-id: <E1MYL3n-0008Fh-Ty@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 144325f0cf1f677d7cef5207f3bd2b394989e072
Author: Michael Andres <ma@xxxxxxx>
Date: Tue Aug 4 16:31:55 2009 +0200

Add compat Misc.h
---
zypp/CMakeLists.txt | 2 ++
zypp/Misc.h | 18 ++++++++++++++++++
zypp/misc/CheckAccessDeleted.cc | 35 +++++++++++++++++++++++++++++++++++
zypp/misc/CheckAccessDeleted.h | 39 +++++++++++++++++++++++++++++++++++++++
4 files changed, 94 insertions(+), 0 deletions(-)

diff --git a/zypp/CMakeLists.txt b/zypp/CMakeLists.txt
index dae0fd9..1a8d902 100644
--- a/zypp/CMakeLists.txt
+++ b/zypp/CMakeLists.txt
@@ -764,10 +764,12 @@ SET( zypp_ws_HEADERS
SET( zypp_misc_HEADERS
Misc.h
misc/DefaultLoadSystem.h
+ misc/CheckAccessDeleted.h
)

SET( zypp_misc_SRCS
misc/DefaultLoadSystem.cc
+ misc/CheckAccessDeleted.cc
)

####################################################################
diff --git a/zypp/Misc.h b/zypp/Misc.h
new file mode 100644
index 0000000..c53104b
--- /dev/null
+++ b/zypp/Misc.h
@@ -0,0 +1,18 @@
+/*---------------------------------------------------------------------\
+| ____ _ __ __ ___ |
+| |__ / \ / / . \ . \ |
+| / / \ V /| _/ _/ |
+| / /__ | | | | | | |
+| /_____||_| |_| |_| |
+| |
+\---------------------------------------------------------------------*/
+/** \file zypp/Misc.h
+ *
+*/
+#ifndef ZYPP_MISC_H
+#define ZYPP_MISC_H
+
+#include "zypp/misc/DefaultLoadSystem.h"
+#include "zypp/misc/CheckAccessDeleted.h"
+
+#endif // ZYPP_MISC_H
diff --git a/zypp/misc/CheckAccessDeleted.cc b/zypp/misc/CheckAccessDeleted.cc
new file mode 100644
index 0000000..678d7ea
--- /dev/null
+++ b/zypp/misc/CheckAccessDeleted.cc
@@ -0,0 +1,35 @@
+/*---------------------------------------------------------------------\
+| ____ _ __ __ ___ |
+| |__ / \ / / . \ . \ |
+| / / \ V /| _/ _/ |
+| / /__ | | | | | | |
+| /_____||_| |_| |_| |
+| |
+\---------------------------------------------------------------------*/
+/** \file zypp/misc/CheckAccessDeleted.cc
+ *
+*/
+#include <iostream>
+//#include "zypp/base/LogTools.h"
+
+#include "zypp/misc/CheckAccessDeleted.h"
+
+using std::endl;
+
+#undef ZYPP_BASE_LOGGER_LOGGROUP
+#define ZYPP_BASE_LOGGER_LOGGROUP "zypp::misc"
+
+///////////////////////////////////////////////////////////////////
+namespace zypp
+{ /////////////////////////////////////////////////////////////////
+ ///////////////////////////////////////////////////////////////////
+ namespace misc
+ { /////////////////////////////////////////////////////////////////
+
+
+ /////////////////////////////////////////////////////////////////
+ } // namespace misc
+ ///////////////////////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////
+} // namespace zypp
+///////////////////////////////////////////////////////////////////
diff --git a/zypp/misc/CheckAccessDeleted.h b/zypp/misc/CheckAccessDeleted.h
new file mode 100644
index 0000000..75c7908
--- /dev/null
+++ b/zypp/misc/CheckAccessDeleted.h
@@ -0,0 +1,39 @@
+/*---------------------------------------------------------------------\
+| ____ _ __ __ ___ |
+| |__ / \ / / . \ . \ |
+| / / \ V /| _/ _/ |
+| / /__ | | | | | | |
+| /_____||_| |_| |_| |
+| |
+\---------------------------------------------------------------------*/
+/** \file zypp/misc/CheckAccessDeleted.h
+ *
+*/
+#ifndef ZYPP_MISC_CHECKACCESSDELETED_H
+#define ZYPP_MISC_CHECKACCESSDELETED_H
+
+#include <iosfwd>
+
+#include "zypp/base/PtrTypes.h"
+
+///////////////////////////////////////////////////////////////////
+namespace zypp
+{ /////////////////////////////////////////////////////////////////
+ ///////////////////////////////////////////////////////////////////
+ namespace misc
+ { /////////////////////////////////////////////////////////////////
+
+ /**
+ * Check for running programms which access deleted files or libraries.
+ *
+ * Executed after commit, this gives a hint which programms/services
+ * need to be restarted.
+ */
+
+ /////////////////////////////////////////////////////////////////
+ } // namespace misc
+ ///////////////////////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////
+} // namespace zypp
+///////////////////////////////////////////////////////////////////
+#endif // ZYPP_MISC_CHECKACCESSDELETED_H
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages