home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libnet / mkstream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  76 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. #ifndef MKSTREAM_H
  19. #define MKSTREAM_H
  20.  
  21. #include "mkgeturl.h"
  22. #include "mkutils.h"
  23.  
  24. /* prints out all converter mime types during successive calls
  25.  * call with first equal true to reset to the beginning
  26.  * and with first equal false to print out the next
  27.  * converter in the list.  Returns zero when all converters
  28.  * are printed out.
  29.  */
  30. extern char *
  31. XP_ListNextPresentationType(Bool first);
  32.  
  33. /* prints out all encoding mime types during successive calls
  34.  * call with first equal true to reset to the beginning
  35.  * and with first equal false to print out the next
  36.  * converter in the list.  Returns zero when all converters
  37.  * are printed out.
  38.  */
  39. extern char *
  40. XP_ListNextEncodingType(Bool first);
  41.  
  42. /* register a mime type and a command to be executed
  43.  */
  44. extern void
  45. NET_RegisterExternalViewerCommand(char * format_in, 
  46.                                   char * system_command, 
  47.                                   unsigned int stream_block_size);
  48.  
  49. /* removes all external viewer commands
  50.  */
  51. extern void NET_ClearExternalViewerConverters(void);
  52.  
  53. MODULE_PRIVATE void
  54. NET_RegisterExternalConverterCommand(char * format_in,
  55.                                      FO_Present_Types format_out,
  56.                                      char * system_command,
  57.                                      char * new_format);
  58.  
  59. #ifdef DEBUG
  60. extern void NET_DisplayStreamInfoAsHTML(ActiveEntry *cur_entry);
  61. #endif /* DEBUG */
  62.  
  63. void
  64. NET_RegisterAllEncodingConverters (char *format_in,
  65.                                    FO_Present_Types format_out);
  66.  
  67. /* register an encoding converter that is used for everything,
  68.  * no exeptions
  69.  * this is necessary for chunked encoding
  70.  */
  71. void
  72. NET_RegisterUniversalEncodingConverter(char *encoding_in,
  73.                               void          * data_obj,
  74.                               NET_Converter * converter_func);
  75. #endif  /* MKSTREAM.h */
  76.