#include <E.h>

#include <stdlib.h>

static int
_e_test_get(void *data, int type, void *event) {
  E_Response_Background_Get *bg;

  bg = event;

  printf("Bg: %s\n", bg->data);
  ecore_main_loop_quit();
}

int main(int argc, char **argv) {

  if (!e_init(":1.0")) {
    printf("Could not connect to enlightenment, perhaps we are not on :0.0!\n");
    exit(-1);
  }

  ecore_event_handler_add(E_RESPONSE_BACKGROUND_GET, _e_test_get, NULL);
  e_background_get();
  ecore_main_loop_begin();
  e_shutdown();
}
