FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
leaf.c File Reference
#include "buckets.h"
Include dependency graph for leaf.c:

Go to the source code of this file.

Functions

FUNCTION int processLeaf (PGconn *pgConn, pbucketdef_t bucketDefArray, puploadtree_t puploadtree, ppackage_t ppackage, int agent_pk, int hasPrules)
 Determine which bucket(s) a leaf node is in and write results. More...
 
FUNCTION int * getLeafBuckets (PGconn *pgConn, pbucketdef_t in_bucketDefArray, puploadtree_t puploadtree, ppackage_t ppackage, int hasPrules)
 Determine what buckets the pfile is in. More...
 

Variables

int debug
 
int DEB_SOURCE
 
int DEB_BINARY
 

Detailed Description

Handle leaf buckets

Definition in file leaf.c.

Function Documentation

FUNCTION int* getLeafBuckets ( PGconn *  pgConn,
pbucketdef_t  in_bucketDefArray,
puploadtree_t  puploadtree,
ppackage_t  ppackage,
int  hasPrules 
)

Determine what buckets the pfile is in.

Parameters
pgConnpostgresql connection
bucketDefArrayBucket definition to work on
puploadtreeUpload tree to work on
hasPrulesNot used
Returns
array of bucket_pk's, or 0 if error

Definition at line 80 of file leaf.c.

FUNCTION int processLeaf ( PGconn *  pgConn,
pbucketdef_t  bucketDefArray,
puploadtree_t  puploadtree,
ppackage_t  ppackage,
int  agent_pk,
int  hasPrules 
)

Determine which bucket(s) a leaf node is in and write results.

Parameters
pgConnpostgresql connection
bucketDefArrayBucket Definitions
puploadtreeuploadtree record
ppackagepackage record
agent_pkId of agent handling the job
hasPrulesNot used
Returns
0=success, else error

Definition at line 42 of file leaf.c.

Variable Documentation

int DEB_BINARY

global mimetype_pk's for Debian binary packages

Definition at line 73 of file buckets.c.

int DEB_SOURCE

global mimetype_pk's for Debian source packages

Definition at line 71 of file buckets.c.

int debug

Print debug messages

Definition at line 68 of file buckets.c.