1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif
#include "osmtypes.h"
#include "output.h"
#include "output-null.h"
#define UNUSED __attribute__ ((unused))
static void null_out_cleanup(void) {
}
static int null_out_start(const struct output_options *opt UNUSED) {
return 0;
}
static void null_out_stop() {
}
static int null_add_node(int a UNUSED, double b UNUSED, double c UNUSED, struct keyval *k UNUSED) {
return 0;
}
static int null_add_way(int a UNUSED, int *b UNUSED, int c UNUSED, struct keyval *k UNUSED) {
return 0;
}
static int null_add_relation(int a UNUSED, struct member *b UNUSED, int c UNUSED, struct keyval *k UNUSED) {
return 0;
}
static int null_delete_node(int i UNUSED) {
return 0;
}
static int null_delete_way(int i UNUSED) {
return 0;
}
static int null_delete_relation(int i UNUSED) {
return 0;
}
static int null_modify_node(int a UNUSED, double b UNUSED, double c UNUSED, struct keyval * k UNUSED) {
return 0;
}
static int null_modify_way(int a UNUSED, int * b UNUSED, int c UNUSED, struct keyval * k UNUSED) {
return 0;
}
static int null_modify_relation(int a UNUSED, struct member * b UNUSED, int c UNUSED, struct keyval * k UNUSED) {
return 0;
}
struct output_t out_null = {
start: null_out_start,
stop: null_out_stop,
cleanup: null_out_cleanup,
node_add: null_add_node,
way_add: null_add_way,
relation_add: null_add_relation,
node_modify: null_modify_node,
way_modify: null_modify_way,
relation_modify: null_modify_relation,
node_delete: null_delete_node,
way_delete: null_delete_way,
relation_delete: null_delete_relation
};
|