---
name: "Eet_Group"
section: "3"
platform: "linux"
package: "libeet-doc"
version: "1.3.2-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Eet_Group"
---

# Eet\_Group(3)

Functions that affect Eet as a whole.

## NAME

Top level functions -

Functions that affect Eet as a whole.

### Typedefs

typedef enum **\_Eet\_Error** **Eet\_Error**\
 *Eet error identifiers.*

### Enumerations

enum **\_Eet\_Error** { **EET\_ERROR\_NONE**, **EET\_ERROR\_BAD\_OBJECT**, **EET\_ERROR\_EMPTY**, **EET\_ERROR\_NOT\_WRITABLE**, **EET\_ERROR\_OUT\_OF\_MEMORY**, **EET\_ERROR\_WRITE\_ERROR**, **EET\_ERROR\_WRITE\_ERROR\_FILE\_TOO\_BIG**, **EET\_ERROR\_WRITE\_ERROR\_IO\_ERROR**, **EET\_ERROR\_WRITE\_ERROR\_OUT\_OF\_SPACE**, **EET\_ERROR\_WRITE\_ERROR\_FILE\_CLOSED**, **EET\_ERROR\_MMAP\_FAILED**, **EET\_ERROR\_X509\_ENCODING\_FAILED**, **EET\_ERROR\_SIGNATURE\_FAILED**, **EET\_ERROR\_INVALID\_SIGNATURE**, **EET\_ERROR\_NOT\_SIGNED**, **EET\_ERROR\_NOT\_IMPLEMENTED**, **EET\_ERROR\_PRNG\_NOT\_SEEDED**, **EET\_ERROR\_ENCRYPT\_FAILED**, **EET\_ERROR\_DECRYPT\_FAILED** }\
 *All the error identifiers known by Eet.*

### Functions

EAPI int **eet\_init** (void)\
 *Initialize the EET library.*  EAPI int **eet\_shutdown** (void)\
 *Shut down the EET library.*  EAPI void **eet\_clearcache** (void)\
 *Clear eet cache.*

## Detailed Description

Functions that affect Eet as a whole.

## Enumeration Type Documentation

### enum \_Eet\_Error

All the error identifiers known by Eet.

**Enumerator:**

- *EET\_ERROR\_NONE*

  *No error, it's all fine!*

- *EET\_ERROR\_BAD\_OBJECT*

  *Given object or handle is NULL or invalid.*

- *EET\_ERROR\_EMPTY*

  *There was nothing to do.*

- *EET\_ERROR\_NOT\_WRITABLE*

  *Could not write to file or fine is* **EET\_FILE\_MODE\_READ***.*

- *EET\_ERROR\_OUT\_OF\_MEMORY*

  *Could not allocate memory.*

- *EET\_ERROR\_WRITE\_ERROR*

  *Failed to write data to destination.*

- *EET\_ERROR\_WRITE\_ERROR\_FILE\_TOO\_BIG*

  *Failed to write file since it is too big.*

- *EET\_ERROR\_WRITE\_ERROR\_IO\_ERROR*

  *Failed to write since generic Input/Output error.*

- *EET\_ERROR\_WRITE\_ERROR\_OUT\_OF\_SPACE*

  *Failed to write due out of space.*

- *EET\_ERROR\_WRITE\_ERROR\_FILE\_CLOSED*

  *Failed to write because file was closed.*

- *EET\_ERROR\_MMAP\_FAILED*

  *Could not mmap file.*

- *EET\_ERROR\_X509\_ENCODING\_FAILED*

  *Could not encode using X509.*

- *EET\_ERROR\_SIGNATURE\_FAILED*

  *Could not validate signature.*

- *EET\_ERROR\_INVALID\_SIGNATURE*

  *Signature is invalid.*

- *EET\_ERROR\_NOT\_SIGNED*

  *File or contents are not signed.*

- *EET\_ERROR\_NOT\_IMPLEMENTED*

  *Function is not implemented.*

- *EET\_ERROR\_PRNG\_NOT\_SEEDED*

  *Could not introduce random seed.*

- *EET\_ERROR\_ENCRYPT\_FAILED*

  *Could not encrypt contents.*

- *EET\_ERROR\_DECRYPT\_FAILED*

  *Could not decrypt contents.*

## Function Documentation

### EAPI void eet\_clearcache (void)

*Clear eet cache. Eet didn't free items by default. If you are under memory presure, just call this function to recall all memory that are not yet referenced anymore. The cache take care of modification on disk.*

**Since:**

*1.0.0*

*Referenced by eet\_shutdown().*

### EAPI int eet\_init (void)

*Initialize the EET library.* **Returns:**

*The new init count.*

**Since:**

*1.0.0*

### EAPI int eet\_shutdown (void)

*Shut down the EET library.* **Returns:**

*The new init count.*

**Since:**

*1.0.0*

*References eet\_clearcache().*

## Author

*Generated automatically by Doxygen for Eet from the source code.*
