langupdate.h File Reference


Detailed Description

Parse the cache output.

Author:
Neil Williams <codehelp@debian.org>

Go to the source code of this file.
#define LOCALE_SUFFIX   "locale"
#define PACKAGE_CHK   "Package"
#define DPKG_FILE   "/var/lib/dpkg/status"
#define SUITE   "unstable"
 default for the command line configuration.
gchar * lu_get_aptstring (void)
 return the configuration options for apt


Define Documentation

#define DPKG_FILE   "/var/lib/dpkg/status"

#define LOCALE_SUFFIX   "locale"

#define PACKAGE_CHK   "Package"

#define SUITE   "unstable"

default for the command line configuration.


Function Documentation

gchar* lu_get_aptstring ( void   ) 

return the configuration options for apt

Returns a newly allocated string consisting of a list of options to pass to apt (apt-cache or apt-get) when using the langupdate tdeb cache.

return the configuration options for apt

Depending on various settings, the apt configuration list needs to be adjusted so it cannot be completely defined as a macro. This function adds the customisations, creates a newly allocated string and returns it. The caller is responsible for freeing the string.

Also sets the langupdate cache data to the same configuration if this has not been done already.

Returns:
newly allocated string of apt options or NULL on error.
00120 {
00121     return g_strconcat (DEBUG, APTCONFIGSTR, "-o Dir::State=",
00122         suite_codename, " -o Dir::Cache=", suite_codename, NULL);


Generated on Sun Dec 2 19:03:19 2007 for langupdate by  doxygen 1.5.4