summaryrefslogtreecommitdiffstats
path: root/src/H5Rprivate.h
blob: 31753288c26808cdb87c355c49245a6d2675b0fa (plain)
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
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the files COPYING and Copyright.html.  COPYING can be found at the root   *
 * of the source code distribution tree; Copyright.html can be found at the  *
 * root level of an installed copy of the electronic HDF5 document set and   *
 * is linked from the top-level documents page.  It can also be found at     *
 * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
 * access to either file, you may request a copy from help@hdfgroup.org.     *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/*
 * This file contains private information about the H5R module
 */
#ifndef _H5Rprivate_H
#define _H5Rprivate_H

/* Include package's public header */
#include "H5Rpublic.h"

/* Private headers needed by this file */
#include "H5Gprivate.h"

/* To prevent including H5Sprivate.h that includes H5Rprivate.h */
struct H5S_t;

/* Private functions */
H5_DLL href_t H5R_create_object(H5G_loc_t *loc, const char *name, hid_t dxpl_id);
H5_DLL href_t H5R_create_region(H5G_loc_t *loc, const char *name, hid_t dxpl_id, struct H5S_t *space);
H5_DLL href_t H5R_create_attr(H5G_loc_t *loc, const char *name, hid_t dxpl_id, const char *attr_name);
H5_DLL href_t H5R_create_ext_object(const char *filename, const char *pathname);
H5_DLL href_t H5R_create_ext_region(const char *filename, const char *pathname, struct H5S_t *space);
H5_DLL href_t H5R_create_ext_attr(const char *filename, const char *pathname, const char *attr_name);
H5_DLL herr_t H5R_destroy(href_t ref);

H5_DLL H5R_type_t H5R_get_type(href_t ref);

H5_DLL herr_t H5R_encode(href_t ref, unsigned char *buf, size_t *nalloc);
H5_DLL href_t H5R_decode(const unsigned char *buf, size_t *nbytes);

H5_DLL herr_t H5R_cast(href_t _ref, H5R_type_t ref_type);

#endif  /* _H5Rprivate_H */