GNUnet  0.11.x
Data Fields
GNUNET_FS_Uri Struct Reference

A Universal Resource Identifier (URI), opaque. More...

#include </home/buildbot/bb-worker/worker/gnunet/build/src/fs/fs_api.h>

Collaboration diagram for GNUNET_FS_Uri:
[legend]

Data Fields

enum GNUNET_FS_UriType type
 Type of the URI. More...
 
union {
   struct {
      char **   keywords
 Keywords start with a '+' if they are mandatory (in which case the '+' is NOT part of the keyword) and with a simple space if they are optional (in which case the space is ALSO not part of the actual keyword). More...
 
      unsigned int   keywordCount
 Size of the keywords array. More...
 
   }   ksk
 
   struct {
      struct GNUNET_CRYPTO_EcdsaPublicKey   ns
 Identifier of the namespace. More...
 
      char *   identifier
 Human-readable identifier chosen for this entry in the namespace. More...
 
   }   sks
 
   struct FileIdentifier   chk
 Information needed to retrieve a file (content-hash-key plus file size). More...
 
   struct Location   loc
 Information needed to retrieve a file including signed location (identity of a peer) of the content. More...
 
data
 

Detailed Description

A Universal Resource Identifier (URI), opaque.

Definition at line 165 of file fs_api.h.

Field Documentation

◆ type

enum GNUNET_FS_UriType GNUNET_FS_Uri::type

◆ keywords

char** GNUNET_FS_Uri::keywords

Keywords start with a '+' if they are mandatory (in which case the '+' is NOT part of the keyword) and with a simple space if they are optional (in which case the space is ALSO not part of the actual keyword).

Double-quotes to protect spaces and %-encoding are NOT used internally (only in URI-strings).

Definition at line 185 of file fs_api.h.

Referenced by GNUNET_FS_uri_ksk_create(), make_file(), start_download(), uri_ksk_parse(), and uri_ksk_to_string().

◆ keywordCount

unsigned int GNUNET_FS_Uri::keywordCount

Size of the keywords array.

Definition at line 190 of file fs_api.h.

Referenced by uri_ksk_to_string().

◆ 

struct { ... } GNUNET_FS_Uri::ksk

◆ ns

struct GNUNET_CRYPTO_EcdsaPublicKey GNUNET_FS_Uri::ns

Identifier of the namespace.

Definition at line 190 of file fs_api.h.

◆ identifier

char* GNUNET_FS_Uri::identifier

Human-readable identifier chosen for this entry in the namespace.

Definition at line 204 of file fs_api.h.

Referenced by GNUNET_FS_publish_sks().

◆ 

struct { ... } GNUNET_FS_Uri::sks

◆ chk

struct FileIdentifier GNUNET_FS_Uri::chk

◆ loc

struct Location GNUNET_FS_Uri::loc

◆ 

union { ... } GNUNET_FS_Uri::data

The documentation for this struct was generated from the following file: