LinkMgrI.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. /* $XConsortium: LinkMgrI.h /main/6 1995/11/13 16:31:02 rswiston $ */
  24. /*************************************<+>*************************************
  25. *****************************************************************************
  26. **
  27. ** File: LinkMgrI.h
  28. **
  29. ** Project:
  30. **
  31. ** Description: Public Header file for Canvas.c
  32. **
  33. ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
  34. **
  35. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  36. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  37. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  38. ** (c) Copyright 1993, 1994 Novell, Inc.
  39. **
  40. *******************************************************************
  41. *************************************<+>*************************************/
  42. #ifndef _DtCvLinkMgrI_h
  43. #define _DtCvLinkMgrI_h
  44. #ifdef __cplusplus
  45. extern "C" {
  46. #endif
  47. /******** Semi-Public Enums ********/
  48. enum _dtLinkType {
  49. _DtLinkTypeNone,
  50. _DtLinkTypeLink,
  51. _DtLinkTypeSwitch
  52. };
  53. /******** Semi-Public Enum Typedefs ********/
  54. typedef enum _dtLinkType _DtLinkType;
  55. /******** Semi-Public Structures Declarations ********/
  56. typedef struct _DtLinkData {
  57. int lnk_type;
  58. int hint;
  59. char *spec;
  60. char *descrip;
  61. } _DtLinkData;
  62. typedef struct _DtSwitchData {
  63. char *interp;
  64. char *cmd;
  65. char *branches;
  66. } _DtSwitchData;
  67. typedef struct _dtCvLinkEntry {
  68. _DtLinkType type;
  69. char *id;
  70. union {
  71. _DtLinkData link;
  72. _DtSwitchData swtch;
  73. } info;
  74. } _DtCvLinkEntry;
  75. struct _dtCvLinkDb {
  76. int max;
  77. _DtCvLinkEntry *list;
  78. };
  79. /******** Semi-Public typedef Structures Declarations ********/
  80. #if !defined(_DtCanvasI_h) && !defined(_DtCvLinkMgrP_h)
  81. typedef struct _dtCvLinkDb* _DtCvLinkDb;
  82. #endif
  83. /******** Semi-Public Function Declarations ********/
  84. extern int _DtLinkDbGetHint(
  85. _DtCvLinkDb link_data,
  86. int link_index);
  87. extern int _DtLinkDbGetLinkInfo(
  88. _DtCvLinkDb link_data,
  89. int link_index,
  90. int (*filter)(),
  91. void *client_data,
  92. _DtCvLinkInfo *ret_info);
  93. extern char *_DtLinkDbGetLinkSpec(
  94. _DtCvLinkDb link_data,
  95. int link_index);
  96. extern int _DtLinkDbGetLinkType(
  97. _DtCvLinkDb link_data,
  98. int link_index);
  99. #ifdef __cplusplus
  100. } /* Close scope of 'extern "C"' declaration which encloses file. */
  101. #endif
  102. #endif /* _DtCvLinkMgrI_h */
  103. /* DON'T ADD ANYTHING AFTER THIS #endif */