libalpm
Arch Linux Package Manager Library
Data Structures | Defines | Enumerations | Functions | Variables
pactree.c File Reference
#include <ctype.h>
#include <getopt.h>
#include <stdio.h>
#include <string.h>
#include <alpm.h>
#include <alpm_list.h>
Include dependency graph for pactree.c:

Go to the source code of this file.

Data Structures

struct  graph_style
struct  color_choices

Defines

#define LINE_MAX   512

Enumerations

enum  { OP_CONFIG = 1000 }

Functions

char * strndup (const char *s, size_t n)
 Copies a string.
int main (int argc, char *argv[])

Variables

alpm_handle_thandle = NULL
alpm_list_twalked = NULL
alpm_list_tprovisions = NULL
struct color_choicescolor = &no_color
struct graph_stylestyle = &graph_default
int graphviz = 0
int max_depth = -1
int reverse = 0
int unique = 0
int searchsyncs = 0
const char * dbpath = DBPATH
const char * configfile = CONFFILE

Define Documentation

#define LINE_MAX   512

Definition at line 28 of file pactree.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
OP_CONFIG 

Definition at line 78 of file pactree.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)
char* strndup ( const char *  s,
size_t  n 
)

Copies a string.

Returned string needs to be freed

Parameters:
sstring to be copied
nmaximum number of characters to copy
Returns:
pointer to the new string on success, NULL on error

Definition at line 107 of file pactree.c.


Variable Documentation

struct color_choices* color = &no_color

Definition at line 88 of file pactree.c.

const char* configfile = CONFFILE

Definition at line 96 of file pactree.c.

const char* dbpath = DBPATH

Definition at line 95 of file pactree.c.

Referenced by _alpm_db_path(), _alpm_local_db_pkgpath(), and main().

int graphviz = 0

Definition at line 90 of file pactree.c.

Definition at line 83 of file pactree.c.

int max_depth = -1

Definition at line 91 of file pactree.c.

Definition at line 85 of file pactree.c.

int reverse = 0

Definition at line 92 of file pactree.c.

Referenced by main().

int searchsyncs = 0

Definition at line 94 of file pactree.c.

Referenced by main().

struct graph_style* style = &graph_default

Definition at line 89 of file pactree.c.

int unique = 0

Definition at line 93 of file pactree.c.

Definition at line 84 of file pactree.c.