Skip to content

Commit

Permalink
Cleanup of easy example
Browse files Browse the repository at this point in the history
  • Loading branch information
eudyptula committed Dec 11, 2015
1 parent 2ef4e30 commit 07d0a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
cmake_minimum_required(VERSION 2.6)
project(HOMEPORT C)

set(CMAKE_C_FLAGS "-DHPD_HTTP -DLR_ORIGIN")
set(CMAKE_C_FLAGS "-DLR_ORIGIN")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -DDEBUG -Wall")

# -fPIC is for compiling on 64bit
Expand Down
6 changes: 1 addition & 5 deletions Examples/hpd_example_easy.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,17 @@

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ev.h>

// With installed homeport change this to <hpdaemon/homeport.h>
// With installed homeport change these to <hpdaemon/*>
#include "homeport.h"
#include "hpd_rest.h"

#if HPD_HTTP
static Adapter *adapter = NULL;
static Device *device = NULL;
static Service *service_lamp0 = NULL;
static Service *service_lamp1 = NULL;
static Service *service_switch0 = NULL;
static Service *service_switch1 = NULL;
#endif

/** A GET function for a service
* Takes a Service structure in parameter, and return a service value as a char*
Expand Down

0 comments on commit 07d0a4c

Please sign in to comment.