XCMCExt.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * XCMCEXT.H
  3. *
  4. * Purpose:
  5. * Specifies constants and data structures for CMC Common extensions
  6. *
  7. */
  8. #ifndef _XCMCEXT_H
  9. #define _XCMCEXT_H
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. /* COMMON EXTENSIONS DECLARATIONS */
  14. #define CMC_XS_COM ((CMC_uint32) 0)
  15. /* FUNCTION EXTENSIONS */
  16. /* Query for extension support in implementation */
  17. #define CMC_X_COM_SUPPORT_EXT ((CMC_uint32) 16)
  18. typedef struct {
  19. CMC_uint32 item_code;
  20. CMC_flags flags;
  21. } CMC_X_COM_support;
  22. #define CMC_X_COM_SUPPORTED ((CMC_flags) 1)
  23. #define CMC_X_COM_NOT_SUPPORTED ((CMC_flags) 2)
  24. #define CMC_X_COM_DATA_EXT_SUPPORTED ((CMC_flags) 4)
  25. #define CMC_X_COM_FUNC_EXT_SUPPORTED ((CMC_flags) 8)
  26. #define CMC_X_COM_SUP_EXCLUDE ((CMC_flags) 16)
  27. /* Get back a structure with configuration data */
  28. #define CMC_X_COM_CONFIG_DATA ((CMC_uint32) 17)
  29. typedef struct {
  30. CMC_uint16 ver_spec;
  31. CMC_uint16 ver_implem;
  32. CMC_object_identifier FAR *character_set;
  33. CMC_enum line_term;
  34. CMC_string default_service;
  35. CMC_string default_user;
  36. CMC_enum req_password;
  37. CMC_enum req_service;
  38. CMC_enum req_user;
  39. CMC_boolean ui_avail;
  40. CMC_boolean sup_nomkmsgread;
  41. CMC_boolean sup_counted_str;
  42. } CMC_X_COM_configuration;
  43. /* Check to see if/when a recipient can be sent */
  44. #define CMC_X_COM_CAN_SEND_RECIP ((CMC_uint32) 18)
  45. #define CMC_X_COM_READY ((CMC_enum) 0)
  46. #define CMC_X_COM_NOT_READY ((CMC_enum) 1)
  47. #define CMC_X_COM_DEFER ((CMC_enum) 2)
  48. /* Save a message to the inbox */
  49. #define CMC_X_COM_SAVE_MESSAGE ((CMC_uint32) 19)
  50. /* Get back a message structure for the message just sent */
  51. #define CMC_X_COM_SENT_MESSAGE ((CMC_uint32) 20)
  52. /* DATA EXTENSIONS */
  53. /* attach a receive date to message and message summary structures */
  54. #define CMC_X_COM_TIME_RECEIVED ((CMC_uint32) 128)
  55. /* attach a unique id to resolved recipient structures */
  56. #define CMC_X_COM_RECIP_ID ((CMC_uint32) 129)
  57. /* set character position in the message text to display an icon
  58. associated with a particular attachment */
  59. #define CMC_X_COM_ATTACH_CHARPOS ((CMC_uint32) 130)
  60. #define CMC_X_COM_PRIORITY ((CMC_uint32) 131)
  61. #define CMC_X_COM_NORMAL ((CMC_enum) 0)
  62. #define CMC_X_COM_URGENT ((CMC_enum) 1)
  63. #define CMC_X_COM_LOW ((CMC_enum) 2)
  64. #ifdef __cplusplus
  65. } /* extern "C" */
  66. #endif
  67. #endif /* _XCMCEXT_H */