LDFLAGS = $(LIBSPI_LIBS) @LT_VERSION_INFO@
+DEBUG_CFLAGS=-DSPI_DEBUG
+
+CFLAGS += $(DEBUG_CFLAGS)
+
libspiincludedir = $(includedir)/libspi
libspiinclude_HEADERS = accessible.h \
* listener.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
+
+#ifdef SPI_DEBUG
#include <stdio.h>
#endif
+
#include <config.h>
#include <bonobo/Bonobo.h>
#include <Accessible.h>
{
/* Listener *listener = LISTENER (object); */
- printf("listener_object_finalize called\n");
-
+#ifdef SPI_DEBUG
+ fprintf(stderr, "listener_object_finalize called\n");
+#endif
listener_parent_class->finalize (object);
}
const Accessibility_Event *e,
CORBA_Environment *ev)
{
+#ifdef SPI_DEBUG
fprintf (stderr, "notify...\n");
fprintf (stderr, "source name: '%s'\n",
Accessibility_Accessible__get_name(e->target, ev));
+#endif
}
static void
* registry.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
+
+#ifdef SPI_DEBUG
#include <stdio.h>
#endif
#include <config.h>
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
+#ifdef SPI_DEBUG
fprintf (stderr, "registering app %p\n", application);
+#endif
+
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
for (n=0; n<len; ++n)
{
- /* fprintf(stderr, "notifying listener #%d\n", n);*/
- /* fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));*/
+#ifdef SPI_DEBUG
+ fprintf(stderr, "notifying listener #%d\n", n);
+ fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));
+#endif
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
* Boston, MA 02111-1307, USA.
*/
+#ifdef AT_SPI_DEBUG
#include <stdlib.h>
+#endif
+
#include <libbonobo.h>
#include "registry.h"
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
+#ifdef AT_SPI_DEBUG
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
+#endif
bonobo_main ();
return 0;
* registry.c: test for accessibility implementation
*
*/
-#define DEBUG_PRINTSTUFF
-#ifdef DEBUG_PRINTSTUFF
+
+#ifdef SPI_DEBUG
#include <stdio.h>
#endif
#include <config.h>
{
Registry *registry = REGISTRY (bonobo_object_from_servant (servant));
+#ifdef SPI_DEBUG
fprintf (stderr, "registering app %p\n", application);
+#endif
+
registry->desktop->applications = g_list_append (registry->desktop->applications, CORBA_Object_duplicate (application, ev));
/*
* TODO: change the implementation below to a WM-aware one;
for (n=0; n<len; ++n)
{
- /* fprintf(stderr, "notifying listener #%d\n", n);*/
- /* fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));*/
+#ifdef SPI_DEBUG
+ fprintf(stderr, "notifying listener #%d\n", n);
+ fprintf(stderr, "event name %s\n", Accessibility_Accessible__get_name(e->target, ev));
+#endif
Accessibility_EventListener_notifyEvent (
(Accessibility_EventListener) g_list_nth_data (registry->listeners, n),
e,
* Boston, MA 02111-1307, USA.
*/
+#ifdef AT_SPI_DEBUG
#include <stdlib.h>
+#endif
+
#include <libbonobo.h>
#include "registry.h"
obj_id,
bonobo_object_corba_objref (bonobo_object (registry)));
+#ifdef AT_SPI_DEBUG
fprintf (stderr, "Registry Message: Registry daemon is running.\n");
+#endif
bonobo_main ();
return 0;
-I$(top_builddir) \
-I$(top_srcdir)/libspi \
-I$(top_builddir)/libspi \
- $(TESTS_CFLAGS)
+ $(TESTS_CFLAGS)
+
+DEBUG_CFLAGS=-DSPI_DEBUG
+
+CFLAGS += $(TESTS_CFLAGS)
LDADD = ../libspi/libspi.la $(TESTS_LIBS)