ISDS.H(3)
β¨ isds.h(3) β API definition for libisds β¨
manual for Libisds Β· part 1 of 3 Β· bestie we are SO doing this π
πΈ NAME πΈ
isds.h β API definition for libisds.
β¨ SYNOPSIS β¨
#include <isds.h>
π DESCRIPTION π
This header file declares the inteface for the libisds library.
π CONSTANTS π
π Service locators π
Addresses of known ISDS servers.
π Base URLs of production ISDS instance π
isds_locator
extern const char isds_locator[];
Without client certificate authentication.
isds_cert_locator
extern const char isds_cert_locator[];
With client certificate authentication.
isds_otp_locator
extern const char isds_otp_locator[];
Without OTP authentication.
π Base URLs of testing ISDS instance π
isds_testing_locator
extern const char isds_testing_locator[];
Without client certificate authentication.
isds_cert_testing_locator
extern const char isds_cert_testing_locator[];
With client certificate authentication.
isds_otp_testing_locator
extern const char isds_otp_testing_locator[];
Without OTP authentication.
π¦ DATA TYPES π¦
π«Ά struct isds_ctx π«Ά
struct isds_ctx;
Context for specific ISDS box.
π«Ά isds_error π«Ά
typedef enum isds_error;
Error code. Known values:
IE_SUCCESSβ No error. Numeric value0.IE_ERRORβ Unspecified error.IE_NOTSUPβ Operation is not supported.IE_INVALβ Invalid value.IE_INVALID_CONTEXTβ The context is not valid.IE_NOT_LOGGED_INβ The context has not been logged in.IE_CONNECTION_CLOSEDβ Network connection has been closed.IE_TIMED_OUTβ Time limit for network operation exceeded.IE_NOEXISTβ Requested entity does exist.IE_NOMEMβ Not enough memory.IE_NETWORKβ Network error.IE_HTTPβ Error on HTTP level.IE_SOAPβ Error on SOAP level.IE_XMLβ Error on XML level.IE_ISDSβ Problem with ISDS server.IE_ENUMβ Invalid enum value.IE_DATEβ Invalid date value.IE_2BIGβ Value is too big.IE_2SMALLβ Value is too small.IE_NOTUNIQβ Value is not uniq.IE_NOTEQUALβ Compared values are not equal.IE_PARTIAL_SUCCESSβ Operation on a vector succeeded for some values, but failed for others.IE_ABORTEDβ Operation was aborted by application request.IE_SECURITYβ Security requirements were not satisfied.
π«Ά isds_log_level π«Ά
typedef enum isds_log_level;
Log level. Known values:
ILL_NONEβ0ILL_CRITβ10ILL_ERRβ20ILL_WARNINGβ30ILL_INFOβ40ILL_DEBUGβ50ILL_ALLβ100
π«Ά isds_log_facility π«Ά
typedef enum isds_log_facility;
Log facility. Known values:
ILF_NONEβ0x0ILF_HTTPβ0x1ILF_SOAPβ0x2ILF_ISDSβ0x4ILF_FILEβ0x8ILF_SECβ0x10ILF_XMLβ0x20ILF_ALLβ0xFF
π«Ά isds_option π«Ά
typedef enum isds_option;
libisds option identifiers. Known values:
IOPT_TLS_VERIFY_SERVERβ Option type is_Bool. Whether to verify server identity. Default value istrue.IOPT_TLS_CA_FILEβ Option type ischar *. Option value is a file name with certificate authority certificates. Default value depends on used cryptographic library.IOPT_TLS_CA_DIRECTORYβ Option type ischar *, Option value is a directory with certificate authority certificates. Default value depends on used cryptographic library.IOPT_TLS_CRL_FILEβ Option type ischar *. Option value is a file name with certificate revocation list in PEM format. Default value depends on used cryptographic library.IOPT_NORMALIZE_MIME_TYPEβ Option type is_Bool. Whether to normalize MIME type values. Default value isfalse.
π«Ά isds_tls_option π«Ά
typedef enum isds_tls_option;
Warning β This type is deprecated.
TLS libisds option identifiers. Known values:
ITLS_VERIFY_SERVERβ Option type is_Bool. Whether to verify server identity.ITLS_CA_FILEβ Option type ischar *. Option value is a file name with certificate authority certificates.ITLS_CA_DIRECTORYβ Option type ischar *. Option value is a directory name with certificate authority certificates.ITLS_CRL_FILEβ Option type ischar *. Option value is a file name with certificate revocation list in PEM format.
π«Ά isds_pki_format π«Ά
typedef enum isds_pki_format;
Cryptographic material encoding. Known values:
PKI_FORMAT_PEMβ PEM format.PKI_FORMAT_DERβ DER format.PKI_FORMAT_ENGβ The material is stored in a cryptographic engine.
π«Ά struct isds_pki_credentials π«Ά
struct isds_pki_credentials;
This structure holds public key infrastructure cryptographic material to authenticate a client. Members are:
char *engine;β String identifier of cryptographic engine to use (where key is stored). UseNULLfor no engine.isds_pki_format certificate_format;β Certificate format.char *certificate;β A path to client certificate, or a certificate nickname in case of NSS as curl back-end, or key slot identifier inside cryptographic engine. Some cryptographic engines can pair certificate with key automatically (NULLvalue).isds_pki_format key_format;β Private key format.char *key;β A path to client private key, or key identifier in case an engine is used.char *passphrase;β Zero terminated string with password for decrypting private key, or engine PIN. UseNULLfor no pass-phrase or to let the engine to ask for it.
π«Ά isds_otp_method π«Ά
typedef enum isds_otp_method;
One-time password authentication method. Known values:
OTP_HMACβ HMAC-based OTP method.OTP_TIMEβ Time-based OTP method.
π«Ά isds_otp_resolution π«Ά
typedef enum isds_otp_resolution;
One-time password authentication resolution. Known values:
OTP_RESOLUTION_SUCCESSβ Authentication succeeded.OTP_RESOLUTION_UNKNOWNβ Status is unknown.OTP_RESOLUTION_BAD_AUTHENTICATIONβ Bad log-in. You can retry to log in.OTP_RESOLUTION_ACCESS_BLOCKEDβ Access blocked for 60 minutes. (Because a brute force attack was detected.)OTP_RESOLUTION_PASSWORD_EXPIREDβ Password has expired.
Note β It's not clear which password expired: OTP or regular password?
OTP_RESOLUTION_TO_FASTβ OTP cannot be sent repeatedly at this rate. (Minimal delay depends on TOTP window setting.)OTP_RESOLUTION_UNAUTHORIZEDβ User name is not allowed to access requested URI.OTP_RESOLUTION_TOTP_SENTβ OTP has been generated and sent by the ISDS to the user.OTP_RESOLUTION_TOTP_NOT_SENTβ OTP could not been sent by the ISDS. Retry later.
π«Ά struct isds_otp π«Ά
struct isds_otp;
This structure holds one-time password when authenticating a client and resolution of the authentication.
Input members are:
isds_otp_method method;β Select OTP method to use.char *otp_code;β One-time password to use. PassNULL, if you do not know it yet (e.g. in case of first phase of time-based OTP authentication to request new code from ISDS.)
Output members are:
isds_otp_resolution resolution;β Fine-grade resolution of this OTP authentication attempt.
π«Ά isds_DbType π«Ά
typedef enum isds_DbType;
Box type. It classifies box owner by his legal status. Known values:
DBTYPE_OVM_MAINβ This is a special value forisds_find_box_by_fulltext. It's not accepted by any other services.DBTYPE_SYSTEMβ This is a special value for sender of messages sent by the ISDS. You can find it only in incomming messages. It's not accepted by any other services.DBTYPE_OVMβ Standard government (state or municipality or similar) office.DBTYPE_OVM_NOTARβ Notary (stopped being used, replaced withOVM_PFO).DBTYPE_OVM_EXEKUTβ Executor (stopped being used, replaced withOVM_PFO).DBTYPE_OVM_REQβ Subsidiary office with OVM (governing) status assigned on request (section 6 and 7 of the act).DBTYPE_OVM_FOβ Natural person with OVM status (without identification number).DBTYPE_OVM_PFOβ Natural person in business with OVM status (e.g. notary or executor).DBTYPE_OVM_POβ Juridical person with OVM status (arisen from previously existing PO or PO_REQ).DBTYPE_POβ Standard commercial organization (listed in trade registry).DBTYPE_PO_ZAKβ Other organization founded by an act (stopped being used, replaced with PO).DBTYPE_PO_REQβ An organization with a box assigned on its request.DBTYPE_PFOβ Person in business.DBTYPE_PFO_ADVOKβ Lawyer.DBTYPE_PFO_DANPORβ Tax consultant.DBTYPE_PFO_INSSPRβ Administrator of insolvency.DBTYPE_PFO_AUDITORβ Statutory auditor.DBTYPE_FOβ Standard person.
Some interfaces refer to gross box type. These are the shortest names of the identifiers. For example, DBTYPE_OVM is a gross type for DB_OVM_NOTAR or DBTYPE_OVM. But not for DBTYPE_PO.
π«Ά isds_DbState π«Ά
typedef enum isds_DbState;
Box status from point of view of accessibility. Known values:
DBSTATE_ACCESSIBLEβ The box is accessible.DBSTATE_TEMP_UNACCESSIBLEβ The box is temporarily inaccessible (at the request of the user).DBSTATE_NOT_YET_ACCESSIBLEβ The box has not yet been activated.DBSTATE_PERM_UNACCESSIBLEβ The box is permanently inaccessible.DBSTATE_REMOVEDβ The box has been removed.DBSTATE_TEMP_UNACCESSIBLE_LAWβ The box is temporarily inaccessible (because of the reasons enumerated in the law).
π«Ά isds_priviledges π«Ά
typedef enum isds_priviledges;
Distinct user permissions from point of view of ISDS. Instances can be bitmaps of any of these distinct values. Distinct known values are:
PRIVIL_READ_NON_PERSONALβ The user can download and read messages withdmPersonalDeliveryequaled tofalse.PRIVIL_READ_ALLβ The user can download and read messages withdmPersonalDeliveryequaled totrue.PRIVIL_CREATE_DMβ The user can create and send messages, the user can download outgoing (sent) messages.PRIVIL_VIEW_INFOβ The user can list messages and read data about a message post and delivery.PRIVIL_SEARCH_DBβ the user can search for boxes π like, they get to go looking through the box directory.PRIVIL_OWNER_ADMβ the user can administer their own box: adding and removing permitted users, and tweaking those users' permissions. Main character admin energy π.PRIVIL_READ_VAULTβ the user can read messages stored in the long term storage (the vault, the archives, the β¨vaultβ¨).
Note: this permission has not been used since 2012-05. Not me calling it retro π it's just literally unused.
PRIVIL_ERASE_VAULTβ the user can delete messages from the long term storage. Poof, gone, into the void π« .
πΈ isds_message_status πΈ
typedef enum isds_message_status;
Message status, bestie. The states a message can be in. Here's the whole roster, no skips:
MESSAGESTATE_SENTβ the message has been put into ISDS. It's out there now π¦.MESSAGESTATE_STAMPEDβ the message was stamped by a time stamp authority. Official. Certified. Slay β.MESSAGESTATE_INFECTEDβ the message included viruses π and the infected documents have been removed from the message.MESSAGESTATE_DELIVEREDβ the message was delivered. (dmDeliveryTimeis populated.)MESSAGESTATE_SUBSTITUTEDβ the message was delivered through fiction, anddmAcceptanceTimeis populated. (Yes, "through fiction" β it's a legal-delivery thing, iykyk.)MESSAGESTATE_RECEIVEDβ the message was accepted, either by the user's log-in or by the user's explicit request.dmAcceptanceTimeis populated.MESSAGESTATE_READβ the message has been read by a user π.MESSAGESTATE_UNDELIVERABLEβ the message could not be delivered. (E.g. the recipient's box has been made inaccessible in the meantime.) L for the sender fr π.MESSAGESTATE_REMOVEDβ the message's content was deleted.MESSAGESTATE_IN_SAFEβ the message is stored in the long term storage. Safe and sound π§.
The values can be combined into a bit mask for some functions. And a special MESSAGESTATE_ANY macro denotes any of the states β a little "any of the above" energy β¨.
π₯ isds_hash_algorithm π₯
typedef enum isds_hash_algorithm;
Hash algorithm types, the whole fam:
HASH_ALGORITHM_MD5β MD5.HASH_ALGORITHM_SHA_1β SHA-1.HASH_ALGORITHM_SHA_224β SHA-224.HASH_ALGORITHM_SHA_256β SHA-256.HASH_ALGORITHM_SHA_384β SHA-384.HASH_ALGORITHM_SHA_512β SHA-256. (Yeah. That's what the page says. I am simply the messenger π)
π isds_buffer_strategy π
typedef enum isds_buffer_strategy;
Buffer storage strategy. This type is basically the rules of the road for how a function should embed an application-provided buffer into the raw element of an output structure. Known values:
BUFFER_DONT_STOREβ don't fill the raw member. Just vibes, no data.BUFFER_COPYβ copy the buffer content into a newly allocated raw member. Fresh copy, freshly allocated π«Ά.BUFFER_MOVEβ copy the pointer. Deallocation is left to the structure destructor (isds_*_free()). So like, hand it over, it's theirs now, they clean up.
π struct isds_hash π
struct isds_hash;
This is a hash value storage. Members:
isds_hash_algorithm algorithm;β the hash algorithm.size_t length;β hash value length in bytes.void *value;β hash value as a byte stream.
πΈ struct isds_PersonName πΈ
struct isds_PersonName;
Name of a person. Members:
char *pnFirstName;β first name.char *pnMiddleName;β middle name.char *pnLastName;β current last name.char *pnLastNameAtBirth;β last name at birth.
π struct isds_BirthInfo π
struct isds_BirthInfo;
Date and place of a birth. Members:
struct tm *biDate;β date of birth in local time at the birth place. Only thetm_year,tm_monandtm_mdaymembers of thestruct tmcarry a sane value. The others are undefined β do not trust them, do not look at them π.char *biCity;β city where a person was born.char *biCounty;β region where a person was born. This is the kind of region that is called Bezirk in German and okres in Czech.char *biState;β state where a person was born.
π¦ struct isds_Address π¦
struct isds_Address;
Postal address. Members:
char *adCity;β city.char *adStreet;β street.char *adNumberInStreet;β identification of an entrance on the street. ΔΓslo orientaΔnΓ in Czech.char *adNumberInMunicipality;β identification of a building in the municipality. ΔΓslo popisnΓ© in Czech.char *adZipCode;β postal code for mail routing π¬.char *adState;β state.
β struct isds_DbOwnerInfo β
struct isds_DbOwnerInfo;
Data about a box and its owner. NULL pointer values mean undefined values. Members:
char *dbID;β box identifier. The specification limits the length to 7 characters.isds_DbType *dbType;β box type.char *ic;β identifier of the owner.isds_PersonName *personName;β name of a person owning the box.char *firmName;β name of a firm owning the box.isds_BirthInfo *birthInfo;β birth details of the person.isds_Address *address;β postal address of the owner.char *nationality;β nationality of the owner.char *email;β e-mail address of the owner.char *telNumber;β telephone number of the owner.char *identifier;β external box identifier for data provider (OVM, PO, maybe PFO box types). The specification limits the length to 20 characters.char *registryCode;β PFO external registry code. The specification limits the length to 5 characters.long int *dbState;β box state.1means the box is active β .
Note: the type islong intbecause the specification declares it asxsd:integer.
Note: TODO: enum?
_Bool *dbEffectiveOVM;β the box has OVM role (section 5a of the act)._Bool *dbOpenAddressing;β this non-OVM box is free to receive messages from anybody. Open inbox, no gatekeeping π.
π isds_UserType π
typedef enum isds_UserType;
User type. Known values:
USERTYPE_PRIMARYβ owner of the box.USERTYPE_ENTRUSTEDβ user with limited access to the box.USERTYPE_ADMINISTRATORβ user who can manageUSERTYPE_ENTRUSTEDusers.USERTYPE_OFFICIALβ???USERTYPE_OFFICIAL_CERTβ???USERTYPE_LIQUIDATORβ company liquidator.USERTYPE_RECEIVERβ company receiver.USERTYPE_GUARDIANβ legal guardian.
π struct isds_DbUserInfo π
struct isds_DbUserInfo;
Data about a user. NULL pointer values mean undefined values. Members:
char *userID;β user identifier. The specification limits the length from 6 to 12 characters.isds_UserType *userType;β user type.long int *userPrivils;β set of user permissions.isds_PersonName *personName;β name of the user.isds_Address *address;β postal address of the user.struct tm *biDate;β date of birth in local time. Only thetm_year,tm_monandtm_mdaymembers of thestruct tmcarry a sane value. The others are undefined π.char *ic;β identifier of a supervising firm. The specification limits the length to 8 characters.char *firmName;β name of a supervising firm. The specification limits the length to 100 characters.char *caStreet;β contact address. Street and number.char *caCity;β Czech city of the contact address.char *caZipCode;β postal code of the contact address.char *caState;β abbreviated country of the contact address. This value is optional and the implicit meaning isCZ.
π isds_event_type π
typedef enum isds_event_type;
Message event type. Known values:
EVENT_UKNOWNβ event unknown to this library. (That's the spelling, bestie, it'sUKNOWNin the code and it stays that way.)EVENT_ACCEPTED_BY_RECIPIENTβ the message has been delivered and accepted by a recipient action.EVENT_ACCEPTED_BY_FICTIONβ the message has been delivered, the acceptance period timed out, and the message is considered as accepted.EVENT_UNDELIVERABLEβ the recipient box was made inaccessible, so the message is undeliverable π.EVENT_COMMERCIAL_ACCEPTEDβ the recipient confirmed acceptance of this commercial message.EVENT_ENTERED_SYSTEMβ the message entered the ISDS system, i.e. it has just been sent by a sender. Fresh out the gate π¦.EVENT_DELIVEREDβ the message has been delivered into the recipient's box.EVENT_PRIMARY_LOGINβ primary user logged into the recipient's box.EVENT_ENTRUSTED_LOGINβ an entrusted user with the capability to read logged into the recipient's box.EVENT_SYSCERT_LOGINβ an application authenticated by a system certificate logged into the recipient's box.
β¨ struct isds_event β¨
struct isds_event;
An event that happened in a message's life. All members are optional. Members:
struct timeval *time;β when the event occurred.isds_event_type *type;β type of the event.charr *description;β human-readable event description generated by the ISDS system. (Very probably in Czech language.) Yeah, it sayscharrup there. We keep it. No cap π.
π§ struct isds_envelope π§
struct isds_envelope;
Message envelope. This is the metadata about a message. It does not contain the message documents.
Warning: be aware that the string length constraints are forced only on output members transmitted to the ISDS. The other direction (downloading from the ISDS) can break these rules. It should not happen, but nobody knows how much incompatible new version of the ISDS protocol will be. This is the gold Internet rule: be strict on what you send, be tolerant on what you receive. π«Ά
The following members apply to incoming messages only:
char *dmID;β message identifier. Maximal length is 20 characters.char *dbIDSender;β box identifier of the sender. The special valueaaaaaaameans the message was sent by the ISDS system. Not by another user. Maximal length is 7 characters.char *dmSender;β sender's name. Maximal length is 100 characters.char *dmSenderAddress;β postal address of the sender. Maximal length is 100 characters.long int *dmSenderType;β gross box type of the sender. You can useisds_DbTypeto enumerate some known box types. This is a generic integer because the protocol keeps the value unconstrained and the library must support any syntactically correct value.char *dmRecipient;β recipient's name. Maximal length is 100 characters.char *dmRecipientAddress;β postal address of the recipient. Maximal length is 100 characters._Bool *dmAmbiguousRecipient;β the recipient has OVM role.
The following members are assigned by the ISDS in different phases of the message life cycle:
unsigned long int *dmOrdinal;β ordinal number in the list of incoming/outgoing messages.isds_message_status *dmMessageStatus;β message state.long int *dmAttachmentSize;β size of message documents in kilobytes. The value is rounded.struct timeval *dmDeliveryTime;β the time of delivering the message into the recipient's box. It will beNULLif the message has not been delivered yet.struct timeval *dmAcceptanceTime;β the moment the recipient accepted the message. It'sNULLif the message hasn't been accepted yet, bestie. No cap.struct isds_hash *hash;β the message digest. It's a hash of a substring representing theisds:dmDMXML subtree. You can useisds_compute_message_hashto compute a hash of the message and then compare it against this struct member usingisds_hash_cmp. Iconic hash behavior.void *timestamp;β a binary image of a qualified time stamp of the hash value. The time stamp is provided by the ISDS system. Messages that haven't been stamped yet will have this valueNULL. Not me waiting for my timestamp.size_t timestamp_length;β length of the timestamp value in bytes.struct isds_list *events;β events the message passed through. It's a list ofisds_eventstructures. Track the journey, periodt.
These next ones apply to both outgoing and incoming messages, fr fr:
char *dmSenderOrgUnit;β sender's organisation unit as a string. This is optional.long int *dmSenderOrgUnitNum;β sender's organisation unit as a number. This is optional.char *dbIDRecipient;β recipient's box identifier. This is mandatory. Maximal length is 7 characters. You can't skip this one, bestie.char *dmRecipientOrgUnit;β recipient's organisation unit as a string. This is optional.long int *dmRecipientOrgUnitNum;β recipient's organisation unit as a number. This is optional.char *dmToHands;β a person in recipient's organisation. This is optional.char *dmAnnotation;β a subject (title) of the message. Maximal length is 255 characters.char *dmRecipientRefNumber;β Czech: ΔΓslo jednacΓ pΕΓjemce. This is optional. Maximal length is 50 characters.char *dmSenderRefNumber;β Czech: ΔΓslo jednacΓ odesΓlatele. This is optional. Maximal length is 50 chars.char *dmRecipientIdent;β Czech: spisovΓ‘ znaΔka pΕΓjemce. This is optional. Maximal length is 50 characters.char *dmSenderIdent;β Czech: spisovΓ‘ znaΔka odesΓlatele. This is optional. Maximal length is 50 chars.
The next five members constitute a reference to an item from the Czech Act Collection. The human-readable reference looks like Point (Paragraph) Β§ Section Law/Year Coll. These members apply to both incoming and outgoing messages:
long int *dmLegalTitleLaw;β a number of an act mandating the authority.long int *dmLegalTitleYear;β a year of issuing the act mandating the authority.char *dmLegalTitleSect;β a section of the act mandating the authority. Czech: paragraf.char *dmLegalTitlePar;β a paragraph of the act mandating the authority. Czech: odstavec.char *dmLegalTitlePoint;β a point of the act mandating the authority. Czech: pΓsmeno.
Other incoming/outgoing message members, because there's always more:
_Bool *dmPersonalDelivery;β if true, only a person with higher privileges can read this message. VIP only, iykyk._Bool *dmAllowSubstDelivery;β allow delivery through fiction. I.e. even if the recipient did not read this message, the message is considered as delivered after (currently) 10 days. This is called delivery through fiction. OnlyOVMdbTypesenders can set it. 10 days? The audacity.char *dmType;β message type (commercial subtypes or government message).- Input values (when sending the message):
"I"β a commercial message offering paying the response (initiatory message). It's necessary to definedmSenderRefNumbermember."K"β a commercial message paid by the sender."O"β a commercial response paid by the sender of a initiatory message. It's necessary to copy a value from thedmSenderRefNumberof the initiatory message to thedmRecipientRefNumberof this message."V"β a noncommercial government message. This is the default meaning if the value is undefined while sending a message.
- Output values (when retrieving the message):
"A"β this is a subsidized initiatory commercial message which can pay a response."B"β this is a subsidized initiatory commercial message which has already paid the response."C"β this is a subsidized initiatory commercial message where the response offer has expired."D"β this is an externally subsidized commercial message."E"β this is a commercial message prepaid by a stamp."G"β this is a commercial message paid by a sponsor."I"β see the input values."K"β see the input values."O"β see the input values."V"β see the input values."X"β this is an initiatory commercial message where the response offer has expired."Y"β this is an initiatory commercial message which has already paid the response."Z"β this is limitedly subsidized commercial message.
- Length of the value is exactly 1 UTF-8 character if defined. That means it's still a zero-terminated character string. One character, but make it iconic.
- Input values (when sending the message):
These members apply to outgoing messages only, bestie:
_Bool *dmOVM;β OVM sending mode. Non-OVMdbTypeboxes that havedbEffectiveOVMequal to true MUST select between true (OVM mode) and false (non-OVM mode). Otherwise the value is optional and the default value is true. MUST, no cap._Bool *dmPublishOwnID;β to allow revealing sender's login name. The name will be available to the recipient throughisds_get_message_senderfunction. The sender's box type and identifier will be always available. This feature exists because more users can have access to one box and the recipient could not tell who was the sender. This value is optional. Default value is false. Optional, default false, stay mysterious if you want.
π¦ isds_FileMetaType π¦
typedef enum isds_FileMetaType;
Document type from the point of view of the hierarchy of documents in a message. Known values are:
FILEMETATYPE_MAINβ main document. There should be exactly one document of this type in a message. Exactly one, periodt.FILEMETATYPE_ENCLOSUREβ an appendix. If a message has more documents, generic-purpose documents other than the main one should have this type.FILEMETATYPE_SIGNATUREβ digital signature. This document is a signature of another document in the message.FILEMETATYPE_METAβ XML document for electronic document information system, elektronickΓ‘ spisovΓ‘ sluΕΎba (ESS) in Czech, purpose.
πΈ struct isds_document πΈ
struct isds_document;
A message document. Members are:
_Bool is_xml;β true if the document is an ISDS XML document. False if the document is an ISDS binary document.xmlNodePtr xml_node_list;β XML node-set presenting the XML document content. This is a pointer to the first XML node of the XML representation of the message as stored in thexmlmember ofisds_messagestructure. Usechildrenandnextmembers to walk through the document. See libxml2 library documentation for more details. Thexml_node_listwill beNULLif the document is empty. It's valid only ifis_xmlis true.void *data;β a binary document content. The encoding and format depends ondmMimeTypemember value. This is valid only ifis_xmlis false.size_t data_length;β length of the data buffer in bytes. It's valid only ifis_xmlis false.char *dmMimeType;β MIME type of document. This member is mandatory.isds_FileMetaType dmFileMetaType;β document type to create document hierarchy inside a message.char *dmFileGuid;β message-local document identifier. It can be used as a key to refer to this document bydmUpFileGuidmember from a different document. This is optional.char *dmUpFileGuid;β a reference to upper document identifier stored indmFileGuidmember of a different document. You can useisds_find_document_by_idfunction to locate the upper document. This value is optional.char *dmFileDescr;β document name (title). E.g. a file name. This value is mandatory.char *dmFormat;β a reference to XML format definition that explains how to interpret the XML document. E.g. a URL to an XML schema. This value is optional.
β¨ struct isds_box_state_period β¨
struct isds_box_state_period;
A box state valid in the time range. Members are:
struct timeval *from;β time range beginning.struct timeval *to;β time range end.long int dbState;β box state.1means the box is accessible. Other values mean the box is inaccessible. You can useisds_DbStateenum to identify some states.
π₯ FUNCTIONS π₯
const char *isds_strerror(const isds_error error);struct isds_ctx *isds_ctx_create(void);
That's the whole function lineup, bestie. π
π SEE ALSO π
π AUTHOR π
Petr PΓsaΕ β he has written libisds. Absolute legend behavior.
This page is from libisds, dated 07/24/2025. Stay slay, bestie. π
β¨
π¦ where this page comes from
- fedora 43: libisds-devel 0.11.2-14.fc43 Β· LGPL-3.0-or-later
- fedora 43: libisds-devel 0.11.2-14.fc43 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms