diff options
author | David Reveman <davidr@novell.com> | 2007-08-31 07:50:07 +0200 |
---|---|---|
committer | David Reveman <davidr@novell.com> | 2007-08-31 07:50:07 +0200 |
commit | 3ce22ee61bca50e992ff98dbfede37dc07776099 (patch) | |
tree | fb16b796a6ae1b2ece93e70d9d7145ded2dfd869 | |
parent | 11da883fa4240cd3d92594f00daa48ea21a76c75 (diff) | |
download | compiz-core-doc-3ce22ee61bca50e992ff98dbfede37dc07776099.tar.gz compiz-core-doc-3ce22ee61bca50e992ff98dbfede37dc07776099.tar.bz2 |
Add core object.
-rw-r--r-- | include/compiz-core.h | 13 | ||||
-rw-r--r-- | include/compiz.h | 1 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/core.c | 41 |
4 files changed, 56 insertions, 0 deletions
diff --git a/include/compiz-core.h b/include/compiz-core.h index 602fa0b..eb007d8 100644 --- a/include/compiz-core.h +++ b/include/compiz-core.h @@ -522,6 +522,19 @@ Bool isActionOption (CompOption *option); +/* core.c */ + +struct _CompCore { + CompObject object; +}; + +CompBool +initCore (void); + +void +finiCore (void); + + /* display.c */ typedef int CompFileWatchHandle; diff --git a/include/compiz.h b/include/compiz.h index 32be090..aef3a7c 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -39,6 +39,7 @@ typedef int CompWatchFdHandle; typedef union _CompOptionValue CompOptionValue; typedef struct _CompObject CompObject; +typedef struct _CompCore CompCore; typedef struct _CompDisplay CompDisplay; typedef struct _CompMetadata CompMetadata; typedef struct _CompOption CompOption; diff --git a/src/Makefile.am b/src/Makefile.am index 0390f62..e72c71a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -14,6 +14,7 @@ compiz_SOURCES = \ main.c \ privates.c \ object.c \ + core.c \ texture.c \ display.c \ screen.c \ diff --git a/src/core.c b/src/core.c new file mode 100644 index 0000000..9190097 --- /dev/null +++ b/src/core.c @@ -0,0 +1,41 @@ +/* + * 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 + * Novell, Inc. not be used in advertising or publicity pertaining to + * distribution of the software without specific, written prior permission. + * Novell, Inc. makes no representations about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + * + * NOVELL, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN + * NO EVENT SHALL NOVELL, INC. 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. + * + * Author: David Reveman <davidr@novell.com> + */ + +#include <compiz-core.h> + +static CompCore core; + +CompBool +initCore (void) +{ + (void) core; + + return TRUE; +} + +void +finiCore (void) +{ +} |