~ubuntu-branches/ubuntu/oneiric/pads/oneiric

« back to all changes in this revision

Viewing changes to src/output/output-csv.h

  • Committer: Bazaar Package Importer
  • Author(s): David Gil
  • Date: 2005-11-05 16:26:57 UTC
  • Revision ID: james.westby@ubuntu.com-20051105162657-qoeyqhl3dl4nqrq4
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*************************************************************************
 
2
 * output.h
 
3
 *
 
4
 * Matt Shelton <matt@mattshelton.com>
 
5
 *
 
6
 * This module contains the output mechanism for PADS.  It will control
 
7
 * all asset data leaving the application.
 
8
 *
 
9
 * Copyright (C) 2004 Matt Shelton <matt@mattshelton.com>
 
10
 *
 
11
 * This program is free software; you can redistribute it and/or modify
 
12
 * it under the terms of the GNU General Public License as published by
 
13
 * the Free Software Foundation; either version 2 of the License, or
 
14
 * (at your option) any later version.
 
15
 *
 
16
 * This program is distributed in the hope that it will be useful,
 
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
 * GNU General Public License for more details.
 
20
 *
 
21
 * You should have received a copy of the GNU General Public License
 
22
 * along with this program; if not, write to the Free Software
 
23
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
24
 *
 
25
 * $Id: output-csv.h,v 1.3 2005/02/18 05:39:09 mattshelton Exp $
 
26
 *
 
27
 **************************************************************************/
 
28
 
 
29
/* DEFINES ----------------------------------------- */
 
30
#ifdef LINUX
 
31
#ifndef __FAVOR_BSD
 
32
#define __FAVOR_BSD
 
33
#endif
 
34
#ifndef _BSD_SOURCE
 
35
#define _BSD_SOURCE
 
36
#endif
 
37
#endif /* ifdef LINUX */
 
38
 
 
39
 
 
40
/* INCLUDES ---------------------------------------- */
 
41
#include <stdio.h>
 
42
 
 
43
#include "output.h"
 
44
 
 
45
 
 
46
/* TYPEDEFS ---------------------------------------- */
 
47
typedef struct _OutputCSVConf
 
48
{
 
49
    FILE *file;
 
50
    bstring filename;
 
51
} OutputCSVConf;
 
52
 
 
53
 
 
54
/* GLOBAL VARIABLES -------------------------------- */
 
55
/* extern _OutputCSVConf OutputCSVConf; */
 
56
 
 
57
 
 
58
/* PROTOTYPES -------------------------------------- */
 
59
int setup_output_csv (void);
 
60
int init_output_csv (bstring filename);
 
61
void read_report_file (void);
 
62
int parse_raw_report (bstring line);
 
63
int print_asset_csv (Asset *rec);
 
64
int print_arp_asset_csv (ArpAsset *rec);
 
65
int end_output_csv (void);
 
66