| 1 |
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. |
| 2 |
|
| 3 |
Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata, |
| 4 |
the dvipdfmx project team. |
| 5 |
|
| 6 |
Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]> |
| 7 |
|
| 8 |
This program is free software; you can redistribute it and/or modify |
| 9 |
it under the terms of the GNU General Public License as published by |
| 10 |
the Free Software Foundation; either version 2 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
|
| 18 |
You should have received a copy of the GNU General Public License |
| 19 |
along with this program; if not, write to the Free Software |
| 20 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
| 21 |
*/ |
| 22 |
|
| 23 |
#ifndef _PDF_NAMES_H_ |
| 24 |
#define _PDF_NAMES_H_ |
| 25 |
|
| 26 |
/* Hash */ |
| 27 |
#include "dpxutil.h" |
| 28 |
#include "pdfobj.h" |
| 29 |
|
| 30 |
/* Not actually tree... */ |
| 31 |
extern struct ht_table *pdf_new_name_tree (void); |
| 32 |
extern void pdf_delete_name_tree (struct ht_table **names); |
| 33 |
|
| 34 |
extern int pdf_names_add_object (struct ht_table *names, |
| 35 |
const void *key, int keylen, pdf_obj *object); |
| 36 |
extern pdf_obj *pdf_names_lookup_reference (struct ht_table *names, |
| 37 |
const void *key, int keylen); |
| 38 |
extern pdf_obj *pdf_names_lookup_object (struct ht_table *names, |
| 39 |
const void *key, int keylen); |
| 40 |
extern int pdf_names_close_object (struct ht_table *names, |
| 41 |
const void *key, int keylen); |
| 42 |
extern pdf_obj *pdf_names_reserve (struct ht_table *names, |
| 43 |
const void *key, int keylen); |
| 44 |
/* Really create name tree... */ |
| 45 |
extern pdf_obj *pdf_names_create_tree (struct ht_table *names, |
| 46 |
int *count, |
| 47 |
struct ht_table *filter); |
| 48 |
|
| 49 |
#endif /* _PDF_NAMES_H_ */ |