home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / npassoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  53 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.  
  19.  
  20. /*
  21.  *  npassoc.h $Revision: 3.1 $
  22.  *  xp filetype associations
  23.  */
  24.  
  25. #ifndef _NPASSOC_H
  26. #define _NPASSOC_H
  27.  
  28. #include "xp_core.h"
  29.  
  30. typedef struct _NPFileTypeAssoc {
  31.     char*    type;                /* a MIME type */
  32.     char*    description;        /* Intelligible description */
  33.     char**  extentlist;            /* a NULL-terminated list of file extensions */
  34.     char*    extentstring;        /* the same extensions, as a single string */
  35.     void*   fileType;            /* platform-specific file selector magic  */
  36.     struct _NPFileTypeAssoc* pNext;
  37. } NPFileTypeAssoc;
  38.  
  39.  
  40. XP_BEGIN_PROTOS
  41.  
  42. extern NPFileTypeAssoc*    NPL_NewFileAssociation(const char *type, const char *extensions,
  43.                                 const char *description, void *fileType);
  44. extern void*            NPL_DeleteFileAssociation(NPFileTypeAssoc *fassoc);
  45. extern void                NPL_RegisterFileAssociation(NPFileTypeAssoc *fassoc);
  46. extern NPFileTypeAssoc*    NPL_RemoveFileAssociation(NPFileTypeAssoc *fassoc);
  47. extern NPFileTypeAssoc* NPL_GetFileAssociation(const char *type);
  48.  
  49. XP_END_PROTOS
  50.  
  51. #endif /* _NPASSOC_H */
  52.  
  53.