summaryrefslogtreecommitdiff
path: root/include/core
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-03-16 00:01:28 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-03-16 00:01:28 +0100
commitaaa1ea1d80873aea6533346199b724550667142b (patch)
treed8c431a31db14e5ccf018796f6ec8df9198a5cc1 /include/core
parent975650f1a276f351aaf50ec6dd692629efbab114 (diff)
downloadmobileperf-aaa1ea1d80873aea6533346199b724550667142b.tar.gz
mobileperf-aaa1ea1d80873aea6533346199b724550667142b.tar.bz2
Drop CompMetadata.
Diffstat (limited to 'include/core')
-rw-r--r--include/core/CMakeLists.txt1
-rw-r--r--include/core/core.h1
-rw-r--r--include/core/metadata.h106
-rw-r--r--include/core/screen.h2
4 files changed, 0 insertions, 110 deletions
diff --git a/include/core/CMakeLists.txt b/include/core/CMakeLists.txt
index 565e1c2..50788e9 100644
--- a/include/core/CMakeLists.txt
+++ b/include/core/CMakeLists.txt
@@ -4,7 +4,6 @@ set (_headers
core.h
icon.h
match.h
- metadata.h
option.h
output.h
plugin.h
diff --git a/include/core/core.h b/include/core/core.h
index 2937a35..bff0646 100644
--- a/include/core/core.h
+++ b/include/core/core.h
@@ -71,7 +71,6 @@ typedef XBool Bool;
#include <core/window.h>
#include <core/plugin.h>
#include <core/option.h>
-#include <core/metadata.h>
#include <core/action.h>
#include <core/icon.h>
#include <core/match.h>
diff --git a/include/core/metadata.h b/include/core/metadata.h
deleted file mode 100644
index 49cb0a8..0000000
--- a/include/core/metadata.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright © 2008 Dennis Kasprzyk
- * Copyright © 2007 Novell, Inc.
- *
- * Permission to use, copy, modify, distribute, and sell this software
- * and its documentation for any purpose is hereby granted without
- * fee, provided that the above copyright notice appear in all copies
- * and that both that copyright notice and this permission notice
- * appear in supporting documentation, and that the name of
- * Dennis Kasprzyk not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior permission.
- * Dennis Kasprzyk makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without express or
- * implied warranty.
- *
- * DENNIS KASPRZYK DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
- * NO EVENT SHALL DENNIS KASPRZYK BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
- * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
- * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
- * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- *
- * Authors: Dennis Kasprzyk <onestone@compiz-fusion.org>
- * David Reveman <davidr@novell.com>
- */
-
-#ifndef _COMPMETADATA_H
-#define _COMPMETADATA_H
-
-#include <vector>
-
-#include <libxml/parser.h>
-
-#include <core/action.h>
-
-#define STRINGIFY(x) #x
-#define TOSTRING(x) STRINGIFY (x)
-#define MINTOSTRING(x) "<min>" TOSTRING (x) "</min>"
-#define MAXTOSTRING(x) "<max>" TOSTRING (x) "</max>"
-#define RESTOSTRING(min, max) MINTOSTRING (min) MAXTOSTRING (max)
-
-class PrivateMetadata;
-
-class CompMetadata {
- public:
- struct OptionInfo {
- const char *name;
- const char *type;
- const char *data;
- CompAction::CallBack initiate;
- CompAction::CallBack terminate;
- };
- public:
- CompMetadata (CompString plugin = "core",
- const OptionInfo *optionInfo = NULL,
- unsigned int nOptionInfo = 0);
- ~CompMetadata ();
-
- std::vector<xmlDoc *> &doc ();
-
- bool addFromFile (CompString file, bool prepend = false);
- bool addFromString (CompString string, bool prepend = false);
- bool addFromIO (xmlInputReadCallback ioread,
- xmlInputCloseCallback ioclose,
- void *ioctx,
- bool prepend = false);
- bool addFromOptionInfo (const OptionInfo *optionInfo,
- unsigned int nOptionInfo,
- bool prepend = false);
-
- bool initOption (CompOption *option,
- CompString name);
-
- bool initOptions (const OptionInfo *info,
- unsigned int nOptions,
- CompOption::Vector &options);
-
-
-
- CompString getShortPluginDescription ();
-
- CompString getLongPluginDescription ();
-
- CompString getShortOptionDescription (CompOption *option);
-
- CompString getLongOptionDescription (CompOption *option);
-
- CompString getStringFromPath (CompString path);
-
- static unsigned int readXmlChunk (const char *src,
- unsigned int *offset,
- char *buffer,
- unsigned int length);
-
- static unsigned int
- readXmlChunkFromOptionInfo (const CompMetadata::OptionInfo *info,
- unsigned int *offset,
- char *buffer,
- unsigned int length);
-
- private:
- PrivateMetadata *priv;
-};
-
-#endif
diff --git a/include/core/screen.h b/include/core/screen.h
index ea58bf7..a076b42 100644
--- a/include/core/screen.h
+++ b/include/core/screen.h
@@ -31,7 +31,6 @@
#include <core/window.h>
#include <core/output.h>
#include <core/session.h>
-#include <core/metadata.h>
#include <core/plugin.h>
#include <core/match.h>
#include <core/pluginclasses.h>
@@ -48,7 +47,6 @@ extern bool noDetection;
extern bool debugOutput;
extern CompScreen *screen;
-extern CompMetadata *coreMetadata;
extern int lastPointerX;
extern int lastPointerY;