File mod_sources.c

This module lists all packages, sorted by package source.

References Functions: sources_index()mod_sources.c
  sources_init()mod_sources.c


Included Files


Preprocessor definitions

#define OUTPUT_FILE "sources.html"

Print the list of packages, grouped by source. We break our HTML encapsulation by using <ol></ol> to allow a quick count of the number of packages.

#define MAX_VALUES 100


Global Variable magpie_module

struct magpie_module magpie_module
Included from magpie.h
Visible in:  magpie.c
   mod_conffiles.c
   mod_core.c
   mod_debian.c
   mod_installed.c
   mod_isizes.c
   mod_keywords.c
   mod_maintainers.c
   mod_md5sums.c
   mod_names.c
   mod_priorities.c
   mod_sections.c
   mod_setuids.c
   mod_sizes.c
   mod_sources.c
   mod_tasks.c
   mod_xml.c
   support.c

Global Variable mod_sources

struct magpie_module mod_sources
Visible in:  magpie.c
   mod_sources.c
Used in:  magpie.c

Local Variables

rcsid
static const char rcsid[]

Local Function cmp_source()

Comparison function for sorting by source We provide one list sorted by source since that can suggest other packages we may be interested in. Unfortunately, only about a third of all packages provide a source value.

static int cmp_source ( const void* p, const void* q )
Calls: strcoll()
Used in: sources_init()mod_sources.c


Local Function sources_index()

Index the packages by name.

static int sources_index ( FILE* fp, int type )
Calls: mp_item_close(), mp_item_open(), mp_url()
Used in:  mod_sources.c


Local Function sources_init()

Print the list of packages, grouped by source. We break our HTML encapsulation by using <ol></ol> to allow a quick count of the number of packages.

static int sources_init ( void )
Calls: gzip()support.c
  fclose(), fopen(), fprintf(), mp_abstract(), mp_break(), mp_doc_close(), mp_doc_open(), mp_histogram(), mp_item_close(), mp_item_open(), mp_list_close(), mp_list_open(), mp_name(), mp_nbsp(), mp_text(), mp_title(), mp_url(), qsort(), strchr(), strcoll(), strcpy()
Used in:  mod_sources.c
References Functions: cmp_source()mod_sources.c
References Variables: cachemod_debian.c
  cachecntmod_debian.c
  categories