mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
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:
parent
8cd3f4c15a
commit
0de6087164
25
lib/lazperf_adapter.h
Normal file
25
lib/lazperf_adapter.h
Normal 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 */
|
||||
@ -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
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
***********************************************************************/
|
||||
|
||||
#include "pc_api_internal.h"
|
||||
#include "lazperf_adapter.h"
|
||||
#include <assert.h>
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user