Aegis  4.25.D505
Data Structures | Functions
/home/archives/aegis/branch.4/branch.25/delta28933.505/libaegis/project.h File Reference
#include <common/ac/time.h>
#include <libaegis/pattr.fmtgen.h>
#include <libaegis/pstate.fmtgen.h>
#include <libaegis/view_path.h>
#include <libaegis/change.h>

Go to the source code of this file.

Data Structures

class  project

Functions

projectproject_alloc (string_ty *name)
void project_bind_existing (project *pp)
bool project_bind_existing_errok (project *pp)
projectproject_bind_branch (project *ppp, change::pointer bp)
void project_bind_new (project *pp)
void project_list_get (struct string_list_ty *)
void project_list_inner (struct string_list_ty *result, project *pp)
projectproject_find_branch (project *pp, const char *number)
void project_free (project *)
nstring project_name_get (project *pp)
projectproject_copy (project *)
change::pointer project_change_get (project *pp)
string_typroject_home_path_get (project *pp)
string_typroject_Home_path_get (project *)
string_typroject_top_path_get (project *, int)
nstring project_rss_path_get (project *pp, bool resolve=false)
void project_home_path_set (project *pp, string_ty *dir)
string_typroject_baseline_path_get (project *pp, bool resolve=false)
string_typroject_history_path_get (project *pp)
string_typroject_history_filename_get (project *, struct fstate_src_ty *)
string_typroject_info_path_get (project *pp)
string_typroject_changes_path_get (project *pp)
string_typroject_change_path_get (project *, long)
string_typroject_pstate_path_get (project *pp)
pstate_typroject_pstate_get (project *pp)
void project_pstate_write (project *pp)
void project_pstate_write_top (project *)
void project_pstate_lock_prepare (project *pp)
void project_pstate_lock_prepare_top (project *)
void project_baseline_read_lock_prepare (project *)
void project_baseline_write_lock_prepare (project *)
void project_history_lock_prepare (project *)
void project_error (project *, struct sub_context_ty *, const char *)
void project_fatal (project *, struct sub_context_ty *, const char *)
void project_verbose (project *, struct sub_context_ty *, const char *)
void project_change_append (project *, long, int)
void project_change_delete (project *, long)
int project_change_number_in_use (project *, long)
nstring project_version_short_get (project *)
nstring project_version_get (project *)
int project_uid_get (project *pp)
int project_gid_get (project *pp)
user_ty::pointer project_user (project *)
void project_become (project *)
void project_become_undo (project *pp)
long project_next_test_number_get (project *)
int project_is_readable (project *)
long project_minimum_change_number_get (project *)
void project_minimum_change_number_set (project *, long)
bool project_reuse_change_numbers_get (project *)
void project_reuse_change_numbers_set (project *, bool)
long project_minimum_branch_number_get (project *)
void project_minimum_branch_number_set (project *, long)
bool project_skip_unlucky_get (project *)
void project_skip_unlucky_set (project *, bool)
bool project_compress_database_get (project *)
void project_compress_database_set (project *, bool)
int project_develop_end_action_get (project *)
void project_develop_end_action_set (project *, int)
bool project_protect_development_directory_get (project *)
void project_protect_development_directory_set (project *, bool)
int break_up_version_string (const char *, long *, int, int *, int)
void extract_version_from_project_name (string_ty **, long *, int, int *)
int project_name_ok (string_ty *)
pconf_typroject_pconf_get (project *)
projectproject_new_branch (project *pp, user_ty::pointer up, long change_number, string_ty *topdir=0, string_ty *reason=0)
void project_file_list_invalidate (project *pp)
string_typroject_brief_description_get (project *)
change::pointer project_uuid_find (project *pp, string_ty *uuid)

Function Documentation

int break_up_version_string ( const char *  ,
long *  ,
int  ,
int *  ,
int   
)
void extract_version_from_project_name ( string_ty **  ,
long *  ,
int  ,
int *   
)
string_ty* project_baseline_path_get ( project pp,
bool  resolve = false 
) [inline]

Definition at line 1034 of file project.h.

void project_become ( project )
void project_become_undo ( project pp)
project* project_bind_branch ( project ppp,
change::pointer  bp 
) [inline]

Definition at line 964 of file project.h.

void project_bind_existing ( project pp) [inline]

Definition at line 952 of file project.h.

bool project_bind_existing_errok ( project pp) [inline]

Definition at line 958 of file project.h.

void project_bind_new ( project pp) [inline]

Definition at line 970 of file project.h.

void project_change_append ( project ,
long  ,
int   
)
void project_change_delete ( project ,
long   
)

Definition at line 1000 of file project.h.

int project_change_number_in_use ( project ,
long   
)

Definition at line 1062 of file project.h.

void project_compress_database_set ( project ,
bool   
)
void project_develop_end_action_set ( project ,
int   
)
void project_error ( project ,
struct sub_context_ty ,
const char *   
)
void project_fatal ( project ,
struct sub_context_ty ,
const char *   
)
void project_file_list_invalidate ( project pp) [inline]

Definition at line 1173 of file project.h.

project* project_find_branch ( project pp,
const char *  number 
) [inline]

Definition at line 984 of file project.h.

void project_free ( project )
int project_gid_get ( project pp) [inline]

Definition at line 1117 of file project.h.

The project_history_filename_get function is used to determine the absolute path pf the file used to contain the history of the given file.

Returns:
a pointer to a string. You are required to str_free this string when you are done with it.

Definition at line 1040 of file project.h.

Definition at line 1006 of file project.h.

void project_home_path_set ( project pp,
string_ty dir 
) [inline]

Definition at line 1028 of file project.h.

Definition at line 1056 of file project.h.

void project_list_get ( struct string_list_ty )
void project_list_inner ( struct string_list_ty result,
project pp 
) [inline]

Definition at line 978 of file project.h.

void project_minimum_branch_number_set ( project ,
long   
)
void project_minimum_change_number_set ( project ,
long   
)
nstring project_name_get ( project pp) [inline]

Definition at line 992 of file project.h.

project* project_new_branch ( project pp,
user_ty::pointer  up,
long  change_number,
string_ty topdir = 0,
string_ty reason = 0 
)

The project_new_branch function is used to create new branches.

Parameters:
ppThe project to create the branch below.
upThe authorised user requesting the new branch.
change_numberThe change number to use for the new branch.
topdirThe change (branch) directory, It is in the same place as the rest of the project, unless otherwise specified (i.e. not NULL). This makes it easy to collect the whole project tree, branches, info and all, in a simple tar or cpio command for archiving or moving.
reasonThe reason the user gave on the command line, or NULL for no reason to be attached to the change's history.
Returns:
A pointer to the new project represented by the new branch.
pstate_ty* project_pstate_get ( project pp) [inline]

Definition at line 1077 of file project.h.

void project_pstate_lock_prepare ( project pp) [inline]

Definition at line 1091 of file project.h.

Definition at line 1071 of file project.h.

void project_pstate_write ( project pp) [inline]

Definition at line 1083 of file project.h.

void project_reuse_change_numbers_set ( project ,
bool   
)
nstring project_rss_path_get ( project pp,
bool  resolve = false 
)

The project_rss_path_get function is used to get the path of the RSS directory for the given project.

Parameters:
ppThe project in question
resolveWhether or not to resolve symlinks in the path.
Returns:
a string containing the absolute path
void project_skip_unlucky_set ( project ,
bool   
)
string_ty* project_top_path_get ( project ,
int   
)
int project_uid_get ( project pp) [inline]

Definition at line 1111 of file project.h.

The project_uuid_find function is used to locate a change given its UUID.

Parameters:
ppThe project to search. Will rewind to the trunk project before the search commences.
uuidThe change UUID to search for.
Returns:
a pointer to the change with th given UUID, or NULL if no change has the given UUID.
void project_verbose ( project ,
struct sub_context_ty ,
const char *   
)