summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h')
-rw-r--r--TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h90
1 files changed, 47 insertions, 43 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h
index 3b20908a333..050dd00c110 100644
--- a/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h
+++ b/TAO/orbsvcs/tests/AVStreams/mpeg/source/mpeg_mib/mibload.h
@@ -37,47 +37,51 @@ ftp from geom.umn.edu; email: software@geom.umn.edu. */
#include <Xm/MwmUtil.h>
#include "ace/OS.h"
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
/* Structure of mib_Widget */
/*****************************************************************************/
typedef struct _mib_Widget {
- char *mib_class; /* name of mib class (Button, TextBox, etc..)*/
- int mib_class_num; /* class number for ez reference :) */
- int mib_mynum; /* numbering for storage format */
- Widget me; /* Xt widget */
- int mib_selected; /* is selected */
- int mib_resizing; /* is resizing 1, or being moved 0 */
- int mib_resizetype;/* 1 = upper left, 2 = upper, 3 = ... */
- int mib_allowresize; /* can this widget be resized ? */
+ char *mib_class; /* name of mib class (Button, TextBox, etc..)*/
+ int mib_class_num; /* class number for ez reference :) */
+ int mib_mynum; /* numbering for storage format */
+ Widget me; /* Xt widget */
+ int mib_selected; /* is selected */
+ int mib_resizing; /* is resizing 1, or being moved 0 */
+ int mib_resizetype;/* 1 = upper left, 2 = upper, 3 = ... */
+ int mib_allowresize; /* can this widget be resized ? */
- int clkx, clky; /* where user clicked */
+ int clkx, clky; /* where user clicked */
- void *myres; /* my resources (different for each widget) */
+ void *myres; /* my resources (different for each widget) */
- char *name; /* reference name of this widget */
- int width, height; /* width and height */
+ char *name; /* reference name of this widget */
+ int width, height; /* width and height */
int topAttachment, bottomAttachment, leftAttachment, rightAttachment;
- /* attachments 1=attached 0=not-attached */
+ /* attachments 1=attached 0=not-attached */
int topOffset, bottomOffset, leftOffset, rightOffset;
- /* offsets if attached */
+ /* offsets if attached */
struct _mib_Widget *parent; /* pointer to parent */
struct _mib_Widget *sibling; /* remaining linked list of sibling widgets */
- struct _mib_Widget *prev; /* previous sibling or parent */
- struct _mib_Widget *child; /* linked list of children widgets */
+ struct _mib_Widget *prev; /* previous sibling or parent */
+ struct _mib_Widget *child; /* linked list of children widgets */
} mib_Widget;
/* mib_Buffer structure */
/*****************************************************************************/
typedef struct _mib_Buffer {
- void *buffer; /* pointer to either a file or a char string */
- int buf_type; /* type of buffer (defined above) */
- int point; /* pointer for string */
- int buflen; /* length of string buffer */
+ void *buffer; /* pointer to either a file or a char string */
+ int buf_type; /* type of buffer (defined above) */
+ int point; /* pointer for string */
+ int buflen; /* length of string buffer */
} mib_Buffer;
/* mib_Widget functions */
@@ -98,7 +102,7 @@ int mib_count_all(mib_Widget *, int);
int mib_load_Root(Widget, mib_Widget **, mib_Buffer *);
mib_Widget *mib_load_public(mib_Widget *, mib_Widget *, mib_Buffer *);
int mib_load_mib_class(mib_Widget **, mib_Widget *, char *, char *,
- mib_Buffer *);
+ mib_Buffer *);
int mib_load_private(mib_Widget *, mib_Buffer *);
void mib_reset_size(mib_Widget *);
int mib_read_line(mib_Buffer *, char *, char *);
@@ -131,38 +135,38 @@ Widget BuildMenu(Widget, int, char *, char, MenuItem *);
/* mib class numbers */
-#define MIB_NULL 0
-#define MIB_TEXTBOX 1
-#define MIB_BUTTON 2
-#define MIB_TOGGLE 3
-#define MIB_RADIOBOX 4
-#define MIB_DRAWINGAREA 5
-#define MIB_LABEL 6
-#define MIB_FRAME 7
-#define MIB_SCROLLBAR 8
-#define MIB_TEXTBIG 9
-#define MIB_LIST 10
-#define MIB_SCALE 11
-#define MIB_MENU 12
+#define MIB_NULL 0
+#define MIB_TEXTBOX 1
+#define MIB_BUTTON 2
+#define MIB_TOGGLE 3
+#define MIB_RADIOBOX 4
+#define MIB_DRAWINGAREA 5
+#define MIB_LABEL 6
+#define MIB_FRAME 7
+#define MIB_SCROLLBAR 8
+#define MIB_TEXTBIG 9
+#define MIB_LIST 10
+#define MIB_SCALE 11
+#define MIB_MENU 12
/* number of classes */
-#define MI_NUMCLASSES 12
+#define MI_NUMCLASSES 12
/* for specifying creation of a widget with
default private values, no values at all (empty),
or no values and editable */
-#define WDEFAULT 1
-#define WEMPTY 2
-#define WEDIT 3
+#define WDEFAULT 1
+#define WEMPTY 2
+#define WEDIT 3
/* for specifing whether we are loading an
interface from a file or from a string and whether it
is editable :) */
-#define MI_FROMFILE 1
-#define MI_EDITFROMFILE 2
-#define MI_FROMSTRING 3
-#define MI_EDITFROMSTRING 4
+#define MI_FROMFILE 1
+#define MI_EDITFROMFILE 2
+#define MI_FROMSTRING 3
+#define MI_EDITFROMSTRING 4
-#define MI_MAXSTRLEN 200 /* maximum string length */
+#define MI_MAXSTRLEN 200 /* maximum string length */