home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / src / Pcdoer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  55 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.  * Private implementation of the Observer.
  21.  *
  22.  * dp Suresh <dp@netscape.com>
  23.  */
  24.  
  25.  
  26. #ifndef _Pcdoer_H_
  27. #define _Pcdoer_H_
  28.  
  29. #include "string.h"            /* Mcf.c uses memcpy, memcmp etc. And it includes
  30.                                only this one header. */
  31. #include "nf.h"                /* For nfFontObserverCallback */
  32. #include "Mcdoer.h"            /* Generated header */
  33.  
  34. struct cdoerImpl {
  35.   cdoerImplHeader    header;
  36.  
  37.   nfFontObserverCallback update_callback;
  38.   void *client_data;
  39. };
  40.  
  41. /* The generated getInterface used the wrong object IDS. So we
  42.  * override them with ours.
  43.  */
  44. #define OVERRIDE_cdoer_getInterface
  45.  
  46. /* The generated finalize doesn't have provision to free the
  47.  * private data that we create inside the object. So we
  48.  * override the finalize method and implement destruction
  49.  * of our private data.
  50.  */
  51. #define OVERRIDE_cdoer_finalize
  52.  
  53. #endif /* _Pcdoer_H_ */
  54.  
  55.