Author: miriam
Date: 2008-11-18 00:56:10 +0000 (Tue, 18 Nov 2008)
New Revision: 8429

Modified:
   software/gofind/Makefile
   software/gofind/gofind.cpp
   software/gofind/gui_cli.cpp
   software/gofind/guiplugin.h
Log:
Create function for main loop in GUI plugin



Modified: software/gofind/Makefile
===================================================================
--- software/gofind/Makefile    2008-11-18 00:48:23 UTC (rev 8428)
+++ software/gofind/Makefile    2008-11-18 00:56:10 UTC (rev 8429)
@@ -34,6 +34,8 @@
 gofind: $(OBJS)
        g++ -o $@ $+ -rdynamic $(LDFLAGS) $(LIBS)
 
+gui_cli.so: gui_cli.o slre.o
+
 %.o: %.cpp
        g++ -o $@ -c $+ $(CFLAGS)
 

Modified: software/gofind/gofind.cpp
===================================================================
--- software/gofind/gofind.cpp  2008-11-18 00:48:23 UTC (rev 8428)
+++ software/gofind/gofind.cpp  2008-11-18 00:56:10 UTC (rev 8429)
@@ -446,10 +446,10 @@
                printResults(engine);
                */
 
+               gui->Comment(_("System running"));
+
                bool run = true;
 
-               gui->Comment(_("System running"));
-
                struct slre_pattern pattern[5];
                const char *pattern_text[5];
                const char pattern_type[] = { 'h', 'l', 'g', 's', '\0' };

Modified: software/gofind/gui_cli.cpp
===================================================================
--- software/gofind/gui_cli.cpp 2008-11-18 00:48:23 UTC (rev 8428)
+++ software/gofind/gui_cli.cpp 2008-11-18 00:56:10 UTC (rev 8429)
@@ -21,6 +21,8 @@
 
 #include "guiplugin.h"
 
+#include "slre.h"
+
 #include <typeinfo>
 #include <iostream>
 #include <string>
@@ -41,22 +43,28 @@
                std::cout << "GUIPlugInCLI() destroyed" << std::endl;
        }
 
-       virtual void Comment(const char *szFormat, ...)
-       {
+       virtual void Comment(const char *szFormat, ...);
+       virtual void Go();
+};
 
-               char str[4096];
-               va_list arglist;
+void GUIPlugInCLI::Comment(const char *szFormat, ...)
+{
+       char str[4096];
+       va_list arglist;
 
-               *str = '\0';
+       *str = '\0';
 
-               va_start(arglist, szFormat);
-               vsprintf(str + strlen(str), szFormat, arglist);
-               va_end(arglist);
+       va_start(arglist, szFormat);
+       vsprintf(str + strlen(str), szFormat, arglist);
+       va_end(arglist);
 
-               std::cout << "##" << str << std::endl;
-       }
-};
+       std::cout << "##" << str << std::endl;
+}
 
+void GUIPlugInCLI::Go()
+{
+}
+
 class GUIPlugInCLIFactory : public GUIPlugInFactory
 {
  public:

Modified: software/gofind/guiplugin.h
===================================================================
--- software/gofind/guiplugin.h 2008-11-18 00:48:23 UTC (rev 8428)
+++ software/gofind/guiplugin.h 2008-11-18 00:56:10 UTC (rev 8429)
@@ -42,6 +42,7 @@
        virtual ~GUIPlugIn();
 
        virtual void Comment(const char *szFormat, ...) = 0;
+       virtual void Go() = 0;
 };
 
 


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to