This file is indexed.

/usr/include/nzb.h is in libnzb-dev 0.0.20050629-6.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
  libnzb

  Copyright (C) 2004 Mattias Nordstrom <matta at ftlight net>

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU 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 General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


  Authors:
    Mattias Nordstrom <matta at ftlight net>

  $Id: nzb.h,v 1.3 2005/02/27 20:35:53 mnordstr Exp $
    This file provides exported libnzb function headers.

*/

#ifndef NZB_H
#define NZB_H

#include <iostream>
#include <vector>

using namespace std;

#define NZB_OK			0	// Ok
#define NZB_ERROR		1	// General/Unknown error

struct nzb_group {
	string group;
};

struct nzb_segment {
	unsigned long bytes;
	unsigned int number;
	string msgid;
};

struct nzb_file {
	int status;
	string poster;
	unsigned int date;
	string subject;

	unsigned int c_groups;
	unsigned int c_segments;
	
	vector<nzb_group> groups;
	vector<nzb_segment> segments;
};

struct nzb_return {
	unsigned int count;
	vector<nzb_file> files;
};

extern "C" nzb_return parse_nzb(string data);

class NNTP {
	public:
		NNTP();
		~NNTP();
		
		int initialize(string host, int port, string user, string pass);
		int terminate();
		string get_article(string msgid);
		unsigned long get_bytes() { return bytes; }
				
	private:
		int net_send(string data);
		string net_recv();
		
		int sockfd;
		unsigned long bytes;
};

#define YRES_OK			0	// Ok
#define YRES_ERRSIZE		1	// Part size mismatch
#define YRES_ERRTOTSIZE		2	// Total filesize mismatch
#define YRES_ERRPCRC32		3	// Part CRC32 error
#define YRES_ERROR		4	// General/Unknown error
#define YRES_ERRPART		5	// Part number mismatch

struct ydata {
	int status;
	string filename;
	unsigned int part;
	unsigned long size;
	unsigned int total;
	unsigned long total_size;
	string crc32;
	unsigned long block_begin;
	unsigned long block_end;
	string data;
};

extern "C" ydata ydecode(string data);

#define URES_OK			0	// Ok
#define URES_ERROR		1	// General/Unknown error

struct udata {
	int status;
	string filename;
	string data;
};

extern "C" udata nzb_udecode(string data, bool multi = false, int type = 0);

#endif