Declare the lazperf compress/uncompress functions

These functions used from pc_patch_lazperf.c were not declared, causing warning
at compile time.
This commit is contained in:
Éric Lemoine 2017-01-23 23:01:32 +01:00 committed by Sandro Santilli
parent 8cd3f4c15a
commit 0de6087164
3 changed files with 27 additions and 5 deletions

25
lib/lazperf_adapter.h Normal file
View File

@ -0,0 +1,25 @@
/***********************************************************************
* lazperf_adapter.h
*
* PgSQL Pointcloud is free and open source software provided
* by the Government of Canada
*
* Copyright (c) 2013 Natural Resources Canada
* Copyright (c) 2013 OpenGeo
* Copyright (c) 2017 Oslandia
*
***********************************************************************/
#ifndef _LAZPERF_ADAPTER_H
#define _LAZPERF_ADAPTER_H
#ifdef __cplusplus
extern "C" {
#endif
size_t lazperf_compress_from_uncompressed(const PCPATCH_UNCOMPRESSED *pa, uint8_t **compressed);
size_t lazperf_uncompress_from_compressed(const PCPATCH_LAZPERF *pa, uint8_t **decompressed);
#ifdef __cplusplus
}
#endif
#endif /* _LAZPERF_ADAPTER_H */

View File

@ -23,11 +23,7 @@
/**********************************************************************
* C API
*/
extern "C" {
size_t lazperf_compress_from_uncompressed(const PCPATCH_UNCOMPRESSED *pa, uint8_t **compressed);
size_t lazperf_uncompress_from_compressed(const PCPATCH_LAZPERF *pa, uint8_t **decompressed);
}
#include "lazperf_adapter.h"
/**********************************************************************
* INTERNAL CPP

View File

@ -9,6 +9,7 @@
***********************************************************************/
#include "pc_api_internal.h"
#include "lazperf_adapter.h"
#include <assert.h>
void