From a652044cd4e99b896c418b7aa7a63b5f8eac0131 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 6 Sep 2014 15:45:05 +0000 Subject: import template --- SpectrogramP.h | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'SpectrogramP.h') diff --git a/SpectrogramP.h b/SpectrogramP.h index 67ac82e..afca1b1 100644 --- a/SpectrogramP.h +++ b/SpectrogramP.h @@ -20,25 +20,33 @@ #include "Spectrogram.h" -typedef struct { - int dummy; -} SpectrogramPart; +/* include superclass private header file */ +#include -typedef struct _SpectrogramRec { - int dummy; -} SpectrogramRec; +/* define unique representation types not found in */ +#define XtRSpectrogramResource "SpectrogramResource" typedef struct { - int dummy; + XtPointer extension; } SpectrogramClassPart; typedef struct _SpectrogramClassRec { - int dummy; + CoreClassPart core_class; + SpectrogramClassPart spectrogram_class; } SpectrogramClassRec; extern SpectrogramClassRec spectrogramClassRec; -__BEGIN_DECLS -__END_DECLS +typedef struct { + /* resources */ + char* resource; + /* private */ + char *private; +} SpectrogramPart; + +typedef struct _SpectrogramRec { + CorePart core; + SpectrogramPart spectrogram; +} SpectrogramRec; #endif -- cgit v1.2.3