aboutsummaryrefslogtreecommitdiffstats
path: root/Object.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-08-27 07:48:10 +0200
committerDaniel Lange <DLange@git.local>2020-08-27 07:48:10 +0200
commitf3147ea2d1598914c2db53e8cfb34c8ff81e2ff4 (patch)
tree3ee82b2af2ab3d38b6e4b07f3994516aac72f742 /Object.h
parentdf568a576f7b44ac5a2b9b7222c7f39d9932f626 (diff)
downloaddebian_htop-f3147ea2d1598914c2db53e8cfb34c8ff81e2ff4.tar.gz
debian_htop-f3147ea2d1598914c2db53e8cfb34c8ff81e2ff4.tar.bz2
debian_htop-f3147ea2d1598914c2db53e8cfb34c8ff81e2ff4.zip
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'Object.h')
-rw-r--r--Object.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Object.h b/Object.h
index 19a667c..9be948f 100644
--- a/Object.h
+++ b/Object.h
@@ -5,6 +5,7 @@
/*
htop - Object.h
(C) 2004-2012 Hisham H. Muhammad
+(C) 2020 Red Hat, Inc. All Rights Reserved.
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
@@ -29,7 +30,7 @@ typedef void(*Object_Delete)(Object*);
#define Class(class_) ((ObjectClass*)(&(class_ ## _class)))
#define AllocThis(class_) (class_*) xMalloc(sizeof(class_)); Object_setClass(this, Class(class_));
-
+
typedef struct ObjectClass_ {
const void* extends;
const Object_Display display;
@@ -41,12 +42,17 @@ struct Object_ {
ObjectClass* klass;
};
+typedef union {
+ int i;
+ void* v;
+} Arg;
+
extern ObjectClass Object_class;
#ifdef DEBUG
-bool Object_isA(Object* o, const ObjectClass* klass);
+extern bool Object_isA(Object* o, const ObjectClass* klass);
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy