$Revision: 1.12 $
Properties module (pr) - this _should_ eventually get merged in with the
Status: NOT REVUED, NOT TESTED
Instructions for use:
To get a property: use the PR_get_property("Property.name") function from your other code.
typedef struct _Property* Property
struct _Property | |
{ | |
char* token; | Token to be found in properties file. |
char* value; | Value to be found in properties file. |
} |
Visible in: | pr/properties.c | |
Used in: | PR_get_property() | pr/properties.c |
PR_to_string() | pr/properties.c | |
add_property() | pr/properties.c | |
purge_properties() | pr/properties.c |
Visible in: | pr/properties.c | |
Used in: | PR_get_property() | pr/properties.c |
PR_set() | pr/properties.c | |
PR_to_string() | pr/properties.c | |
add_property() | pr/properties.c | |
purge_properties() | pr/properties.c |
Visible in: | pr/properties.c | |
Used in: | PR_load() | pr/properties.c |
PR_set() | pr/properties.c |
Sets the properties file name. Then sets the properties with a call to set_properties().
More:Authors: ottrey
Prototyped in: | /home/shane/code/RIP/include/properties.h | |
Calls: | UT_strdup_real(), strcmp() | |
Called by: | CO_set() | co/constants.c |
authenticate_user() | pc/protocol_config.c | |
References Variables: | Prop_count | pr/properties.c |
Properties | pr/properties.c |
Sets the properties file name. Then sets the properties with a call to set_properties().
More:Authors: ottrey
Prototyped in: | /home/shane/code/RIP/include/properties.h | |
Calls: | PR_set() | pr/properties.c |
UT_free_real(), UT_strdup_real() | ||
References Variables: | Prop_file_name | pr/properties.c |
Sets the properties from the properties file.
More:Authors: ottrey
Prototyped in: | /home/shane/code/RIP/include/properties.h | |
Calls: | add_property() | pr/properties.c |
purge_properties() | pr/properties.c | |
UT_strdup_real(), fdwrap_fclose(), fgets(), fopen(), fprintf(), sprintf(), strcat(), strchr(), strlen(), strncpy(), strrchr() | ||
Called by: | PR_load() | pr/properties.c |
References Variables: | Prop_count | pr/properties.c |
Prop_file_name | pr/properties.c |
Returns the properties as a string.
More:Authors: ottrey
Pre-Conditions: The properties must be loaded first with load_properties().
Prototyped in: | /home/shane/code/RIP/include/properties.h | |
Calls: | UT_strdup_real(), g_string_append_c(), g_string_free(), g_string_new(), g_string_sprintfa() | |
Called by: | show_props() | pc/pc_commands.c |
References Variables: | Prop_count | pr/properties.c |
Properties | pr/properties.c |
Adds a new property to the Properties array.
More:Authors: ottrey
Calls: | UT_calloc_real(), UT_strdup_real() | |
Called by: | PR_set() | pr/properties.c |
References Variables: | Prop_count | pr/properties.c |
Properties | pr/properties.c |
Included from: | /usr/include/time.h | |
Calls: | __posix_asctime_r() |
Included from: | /usr/include/time.h | |
Calls: | __posix_ctime_r() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_getlogin_r() |
Purges the old properties.
More:Authors: ottrey
Calls: | UT_free_real() | |
Called by: | PR_set() | pr/properties.c |
References Variables: | Prop_count | pr/properties.c |
Properties | pr/properties.c |
Included from: | /usr/include/dirent.h | |
Calls: | __posix_readdir_r() |
Included from: | /usr/include/signal.h | |
Calls: | __posix_sigwait() |
Included from: | /usr/include/unistd.h | |
Calls: | __posix_ttyname_r() |