/* -*- Mode: C -*-
 *
 * $Header: /home/gene/library/website/docsrc/sdkskel/src/RCS/log.h,v 395.1 2008/04/20 17:25:51 gene Exp $
 *
 * Copyright (c) 2006 Gene Michael Stover.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
 * USA
 */

/*
 */
void LOG_AviError (DWORD error, char moo[], char file[], int line);

/*
 * Print a Windows error message.
 *
 * Moo[] is the name of the function which reported the error.
 * Like, it might be CeateWindow.
 *
 * File[] is the nameof the source file where the error was
 * detected.  Line is the line number in that file.
 */
void LOG_Error (DWORD error, char moo[], char file[], int line);

/*
 * Like LOG_Error but for an error code, this function uses
 * GetLastError.
 */
void LOG_LastError (char moo[], char file[], int line);

/*
 * Writes a trace message to the log file if that file exists.
 */
void LOG_Trace (char file[], int line);

/*
 */
void LOG_TraceEntry (char file[], int line, char moo[]);

/*
 */
void LOG_TraceExit (char file[], int line, char moo[]);

/*
 */
void LOG_TraceMoo (char file[], int line, char moo[]);

/*
 */
void LOG_TraceMsgMapNotFound (char file[], int line, WindowMessage msg);

/*
 */
void LOG_TraceWindowClass (char file[], int line, HWND wnd);

/*
 */
void LOG_TraceWindowMessage (char file[], int line, WindowMessage msg);

/*
 */
void LOG_TraceXmalloc (char file[], int line, int sz);

/*
 */
extern char *LOG_pathname;

/*
 * Return file pointer or NULL if we can't open the file.
 */
FILE *LOG_Open ();

/* --- end of file --- */
