Source File ak/ack.h

    1    | /***************************************
    2    |   $Revision: 1.9 $
    3    |
    4    |   AK (Acknowledgement) module
    5    |
    6    |   Status: NOT REVIEWED, TESTED
    7    |
    8    |   Author(s):       Engin Gunduz
    9    |
    10   |   ******************/ /******************
    11   |   Modification History:
    12   |         engin (10/06/2000) Created.
    13   |   ******************/ /******************
    14   |   Copyright (c) 2000,2001,2002                    RIPE NCC
    15   |
    16   |   All Rights Reserved
    17   |
    18   |   Permission to use, copy, modify, and distribute this software and its
    19   |   documentation for any purpose and without fee is hereby granted,
    20   |   provided that the above copyright notice appear in all copies and that
    21   |   both that copyright notice and this permission notice appear in
    22   |   supporting documentation, and that the name of the author not be
    23   |   used in advertising or publicity pertaining to distribution of the
    24   |   software without specific, written prior permission.
    25   |
    26   |   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
    27   |   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
    28   |   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
    29   |   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
    30   |   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
    31   |   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    32   |  ***************************************/
    33   |
    34   | #ifndef ACK_H
    35   | #define ACK_H
    36   |
    37   | #include <stdarg.h>
    38   | #include <stdio.h>
    39   | #include <strings.h>
    40   | //#include <string>
    41   | #include <unistd.h>
    42   | #include <stdlib.h>
    43   | //#include <iostream.h>
    44   | //#include <fstream>
    45   | #include <glib.h>
    46   | #include <time.h>
    47   | #include "UP_util.h"
    48   | #include "UP_subject.h"
    49   |
    50   |
    51   | void AK_add_to_ack(const char * filename, char * fmt, ...);
    52   |
    53   | void AK_add_file_to_ack(const char * ackfile, const char * filetoadd);
    54   |
    55   | char * AK_ack_file_name_generate( const char * tmpdir, const char * prefix);
    56   |
    57   | void AK_send_ack( const char * filename, const char * to_address, const char * mailercommand);
    58   |
    59   | void AK_print_ack( const char * filename );
    60   |
    61   | void AK_delete_ack( const char * filename );
    62   |
    63   | void AK_log_ack( const char * filename, const char * log_file );
    64   |
    65   | //void AK_add_to_ack_string(const char * file_name, const string msg);
    66   |
    67   |
    68   | #endif
    69   |