tttar_api.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
  24. /*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
  25. /*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
  26. /*%% (c) Copyright 1993, 1994 Novell, Inc. */
  27. /*%% $XConsortium: tttar_api.h /main/3 1995/10/20 17:00:02 rswiston $ */
  28. /*
  29. * tttar_api.h - Link Service/ToolTalk object archiving interface functions.
  30. *
  31. * If LS/TT object archiving were ever to go into the LS/TT API,
  32. * some variation on these would be the functions to put in.
  33. *
  34. * Copyright (c) 1990 by Sun Microsystems, Inc.
  35. *
  36. */
  37. #ifndef _TTTAR_API_H
  38. #define _TTTAR_API_H
  39. #include "tttar_string_map.h"
  40. #define CURRENT_ARCHIVE_VERSION 1
  41. typedef enum object_kind {
  42. NO_KIND,
  43. VERSION_NUM,
  44. SPEC,
  45. ARCHIVE_END,
  46. SUN_LINK } Object_kind;
  47. bool_t pathlist_lstt_archive(
  48. _Tt_string_list_ptr paths,
  49. bool_t recurse,
  50. bool_t follow_symlinks,
  51. int verbosity,
  52. XDR *xdrs );
  53. bool_t pathlist_lstt_dearchive(
  54. _Tt_string_list_ptr paths_to_extract,
  55. Lstar_string_map_list_ptr renamings,
  56. _Tt_string where_to_dearchive,
  57. bool_t preserve__props,
  58. int verbosity,
  59. XDR *xdrs );
  60. bool_t pathlist_lstt_archive_list(
  61. _Tt_string_list_ptr paths_to_extract,
  62. int verbosity,
  63. XDR *xdrs );
  64. bool_t spec_archive(
  65. char *id,
  66. char *path,
  67. int verbosity,
  68. XDR *xdrs,
  69. Tt_status *err );
  70. bool_t spec_dearchive(
  71. char **old_spec_id_ptr,
  72. char **new_spec_id_ptr,
  73. char **path_as_archived,
  74. Lstar_string_map_list_ptr renamings,
  75. char *where_to_create,
  76. bool_t preserve__props,
  77. bool_t (*dearchive_this_path)(char *, void *),
  78. void *context,
  79. int verbosity,
  80. XDR *xdrs,
  81. Tt_status *err );
  82. #endif /* _TTTAR_API_H */