00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __DEJAGNU_PLUGIN_H__
00018 #define __DEJAGNU_PLUGIN_H__
00019
00020 #ifdef HAVE_CONFIG_H
00021 #include "config.h"
00022 #endif
00023
00024 #include <memory>
00025 #include "as_object.h"
00026 #include "sharedlib.h"
00027 #include "extension.h"
00028
00029 namespace gnash
00030 {
00031
00032 class as_object;
00033
00034 class DejaGnu {
00035 public:
00036 DejaGnu();
00037 ~DejaGnu();
00038 const char *pass (const char *msg);
00039 const char *fail (const char *msg);
00040 const char *xpass (const char *msg);
00041 const char *xfail (const char *msg);
00042 void totals ();
00043 private:
00044 int passed;
00045 int failed;
00046 int xpassed;
00047 int xfailed;
00048 };
00049
00050 extern "C" {
00051 void dejagnu_class_init(as_object *obj);
00052 }
00053
00055 std::auto_ptr<as_object> init_dejagnu_instance();
00056
00057
00058 }
00059
00060
00061 #endif
00062
00063
00064
00065
00066