Deleted Added
full compact
cdf.h (275698) cdf.h (284237)
1/*-
2 * Copyright (c) 2008 Christos Zoulas
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 300 unchanged lines hidden (view full) ---

309int cdf_read_short_stream(const cdf_info_t *, const cdf_header_t *,
310 const cdf_sat_t *, const cdf_dir_t *, cdf_stream_t *,
311 const cdf_directory_t **);
312int cdf_read_property_info(const cdf_stream_t *, const cdf_header_t *, uint32_t,
313 cdf_property_info_t **, size_t *, size_t *);
314int cdf_read_user_stream(const cdf_info_t *, const cdf_header_t *,
315 const cdf_sat_t *, const cdf_sat_t *, const cdf_stream_t *,
316 const cdf_dir_t *, const char *, cdf_stream_t *);
1/*-
2 * Copyright (c) 2008 Christos Zoulas
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 300 unchanged lines hidden (view full) ---

309int cdf_read_short_stream(const cdf_info_t *, const cdf_header_t *,
310 const cdf_sat_t *, const cdf_dir_t *, cdf_stream_t *,
311 const cdf_directory_t **);
312int cdf_read_property_info(const cdf_stream_t *, const cdf_header_t *, uint32_t,
313 cdf_property_info_t **, size_t *, size_t *);
314int cdf_read_user_stream(const cdf_info_t *, const cdf_header_t *,
315 const cdf_sat_t *, const cdf_sat_t *, const cdf_stream_t *,
316 const cdf_dir_t *, const char *, cdf_stream_t *);
317#define cdf_read_catalog(info, header, sat, ssat, stream, dir, scn) \
318 cdf_read_user_stream(info, header, sat, ssat, stream, dir, "Catalog", \
319 scn)
320#define cdf_read_encrypted_package(info, header, sat, ssat, stream, dir, scn) \
321 cdf_read_user_stream(info, header, sat, ssat, stream, dir, \
322 "EncryptedPackage", scn)
317int cdf_find_stream(const cdf_dir_t *, const char *, int);
323int cdf_read_summary_info(const cdf_info_t *, const cdf_header_t *,
324 const cdf_sat_t *, const cdf_sat_t *, const cdf_stream_t *,
325 const cdf_dir_t *, cdf_stream_t *);
326int cdf_unpack_summary_info(const cdf_stream_t *, const cdf_header_t *,
327 cdf_summary_info_header_t *, cdf_property_info_t **, size_t *);
328int cdf_unpack_catalog(const cdf_header_t *, const cdf_stream_t *,
329 cdf_catalog_t **);
330int cdf_print_classid(char *, size_t, const cdf_classid_t *);
331int cdf_print_property_name(char *, size_t, uint32_t);
332int cdf_print_elapsed_time(char *, size_t, cdf_timestamp_t);
333uint16_t cdf_tole2(uint16_t);
334uint32_t cdf_tole4(uint32_t);
335uint64_t cdf_tole8(uint64_t);
336char *cdf_ctime(const time_t *, char *);
337char *cdf_u16tos8(char *, size_t, const uint16_t *);
338
339#ifdef CDF_DEBUG
340void cdf_dump_header(const cdf_header_t *);
341void cdf_dump_sat(const char *, const cdf_sat_t *, size_t);
318int cdf_read_summary_info(const cdf_info_t *, const cdf_header_t *,
319 const cdf_sat_t *, const cdf_sat_t *, const cdf_stream_t *,
320 const cdf_dir_t *, cdf_stream_t *);
321int cdf_unpack_summary_info(const cdf_stream_t *, const cdf_header_t *,
322 cdf_summary_info_header_t *, cdf_property_info_t **, size_t *);
323int cdf_unpack_catalog(const cdf_header_t *, const cdf_stream_t *,
324 cdf_catalog_t **);
325int cdf_print_classid(char *, size_t, const cdf_classid_t *);
326int cdf_print_property_name(char *, size_t, uint32_t);
327int cdf_print_elapsed_time(char *, size_t, cdf_timestamp_t);
328uint16_t cdf_tole2(uint16_t);
329uint32_t cdf_tole4(uint32_t);
330uint64_t cdf_tole8(uint64_t);
331char *cdf_ctime(const time_t *, char *);
332char *cdf_u16tos8(char *, size_t, const uint16_t *);
333
334#ifdef CDF_DEBUG
335void cdf_dump_header(const cdf_header_t *);
336void cdf_dump_sat(const char *, const cdf_sat_t *, size_t);
342void cdf_dump(void *, size_t);
337void cdf_dump(const void *, size_t);
343void cdf_dump_stream(const cdf_header_t *, const cdf_stream_t *);
344void cdf_dump_dir(const cdf_info_t *, const cdf_header_t *, const cdf_sat_t *,
345 const cdf_sat_t *, const cdf_stream_t *, const cdf_dir_t *);
346void cdf_dump_property_info(const cdf_property_info_t *, size_t);
347void cdf_dump_summary_info(const cdf_header_t *, const cdf_stream_t *);
348void cdf_dump_catalog(const cdf_header_t *, const cdf_stream_t *);
349#endif
350
351
352#endif /* _H_CDF_ */
338void cdf_dump_stream(const cdf_header_t *, const cdf_stream_t *);
339void cdf_dump_dir(const cdf_info_t *, const cdf_header_t *, const cdf_sat_t *,
340 const cdf_sat_t *, const cdf_stream_t *, const cdf_dir_t *);
341void cdf_dump_property_info(const cdf_property_info_t *, size_t);
342void cdf_dump_summary_info(const cdf_header_t *, const cdf_stream_t *);
343void cdf_dump_catalog(const cdf_header_t *, const cdf_stream_t *);
344#endif
345
346
347#endif /* _H_CDF_ */