Struct gnunet_sys::GNUNET_OS_ProjectData[][src]

#[repr(C)]pub struct GNUNET_OS_ProjectData {
    pub libname: *const c_char,
    pub project_dirname: *const c_char,
    pub binary_name: *const c_char,
    pub env_varname: *const c_char,
    pub env_varname_alt: *const c_char,
    pub base_config_varname: *const c_char,
    pub bug_email: *const c_char,
    pub homepage: *const c_char,
    pub config_file: *const c_char,
    pub user_config_file: *const c_char,
    pub version: *const c_char,
    pub is_gnu: c_int,
    pub gettext_domain: *mut c_char,
    pub gettext_path: *mut c_char,
    pub agpl_url: *mut c_char,
}

Project-specific data used to help the OS subsystem find installation paths.

Fields

libname: *const c_char

Name of a library that is installed in the “lib/” directory of the project, such as “libgnunetutil”. Used to locate the installation by scanning dependencies of the current process.

project_dirname: *const c_char

Name of the project that is used in the “libexec” prefix, For example, “gnunet”. Certain helper binaries are then expected to be installed in “$PREFIX/libexec/gnunet/” and resources in “$PREFIX/share/gnunet/”.

binary_name: *const c_char

Name of a project-specific binary that should be in “$PREFIX/bin/”. Used to determine installation path from $PATH variable. For example “gnunet-arm”. On W32, “.exe” should be omitted.

env_varname: *const c_char

Name of an environment variable that can be used to override installation path detection, for example “GNUNET_PREFIX”.

env_varname_alt: *const c_char

Alternative name of an environment variable that can be used to override installation path detection, if “env_varname” is not set. Again, for example, “GNUNET_PREFIX”.

base_config_varname: *const c_char

Name of an environment variable that can be used to override the location from which default configuration files are loaded from, for example “GNUNET_BASE_CONFIG”.

bug_email: *const c_char

E-mail address for reporting bugs.

homepage: *const c_char

Project homepage.

config_file: *const c_char

Configuration file name (in $XDG_CONFIG_HOME) to use.

user_config_file: *const c_char

Configuration file name to use (if $XDG_CONFIG_HOME is not set).

version: *const c_char

String identifying the current project version.

is_gnu: c_int

Non-zero means this project is part of GNU.

gettext_domain: *mut c_char

Gettext domain for localisation, e.g. the PACKAGE macro. Setting this field to NULL disables gettext.

gettext_path: *mut c_char

Gettext directory, e.g. the LOCALEDIR macro. If this field is NULL, the path is automatically inferred.

agpl_url: *mut c_char

URL pointing to the source code of the application. Required for AGPL. Setting this to NULL disables the built-in mechanism, but you must provide it in some other way. If non-NULL, message type 1 and 2 are reserved.

Trait Implementations

impl Clone for GNUNET_OS_ProjectData[src]

impl Copy for GNUNET_OS_ProjectData[src]

impl Debug for GNUNET_OS_ProjectData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.