FOSSology  4.4.0
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

◆ getLeafBuckets()

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 68 of file leaf.c.

◆ processLeaf()

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 30 of file leaf.c.

Variable Documentation

◆ DEB_BINARY

int DEB_BINARY
extern

global mimetype_pk's for Debian binary packages

Definition at line 62 of file buckets.c.

◆ DEB_SOURCE

int DEB_SOURCE
extern

global mimetype_pk's for Debian source packages

Definition at line 60 of file buckets.c.

◆ debug

int debug
extern

Print debug messages

Definition at line 57 of file buckets.c.