# lv_cache_entry_private.h (/api/misc/cache/lv_cache_entry_private_h)



<RelatedHeaders name="lv_cache_entry.h" isPrivate="true" />

<ApiSummary functions="10" structs="1" macros="3" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (3)&#x22;,&#x22;Other (7)&#x22;]">
  <ApiTab value="Setters (3)">
    <ApiMember kind="function" name="lv_cache_entry_set_node_size" file="misc/cache/lv_cache_entry_private.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L43">
      lv_cache_entry_set_node_size [#lv_cache_entry_set_node_size]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_set_node_size(lv_cache_entry_t *entry, uint32_t node_size)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name        | Type                                                             |
      | ----------- | ---------------------------------------------------------------- |
      | `entry`     | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `node_size` | <ApiLink name="uint32_t" />                                      |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_set_cache" file="misc/cache/lv_cache_entry_private.h" line="44" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L44">
      lv_cache_entry_set_cache [#lv_cache_entry_set_cache]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_set_cache(lv_cache_entry_t *entry, const lv_cache_t *cache)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `cache` | <ApiLink name="lv_cache_t" display="const lv_cache_t *" />       |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_set_flag" file="misc/cache/lv_cache_entry_private.h" line="47" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L47">
      lv_cache_entry_set_flag [#lv_cache_entry_set_flag]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_set_flag(lv_cache_entry_t *entry, uint8_t flags)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `flags` | <ApiLink name="uint8_t" />                                       |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (7)">
    <ApiMember kind="function" name="lv_cache_entry_reset_ref" file="misc/cache/lv_cache_entry_private.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L40">
      lv_cache_entry_reset_ref [#lv_cache_entry_reset_ref]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_reset_ref(lv_cache_entry_t *entry)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_inc_ref" file="misc/cache/lv_cache_entry_private.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L41">
      lv_cache_entry_inc_ref [#lv_cache_entry_inc_ref]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_inc_ref(lv_cache_entry_t *entry)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_dec_ref" file="misc/cache/lv_cache_entry_private.h" line="42" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L42">
      lv_cache_entry_dec_ref [#lv_cache_entry_dec_ref]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_dec_ref(lv_cache_entry_t *entry)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_acquire_data" file="misc/cache/lv_cache_entry_private.h" line="45" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L45">
      lv_cache_entry_acquire_data [#lv_cache_entry_acquire_data]

      ```c title=" " lineNumbers=1
      void * lv_cache_entry_acquire_data(lv_cache_entry_t *entry)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_release_data" file="misc/cache/lv_cache_entry_private.h" line="46" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L46">
      lv_cache_entry_release_data [#lv_cache_entry_release_data]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_release_data(lv_cache_entry_t *entry, void *user_data)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name        | Type                                                             |
      | ----------- | ---------------------------------------------------------------- |
      | `entry`     | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `user_data` | `void *`                                                         |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_remove_flag" file="misc/cache/lv_cache_entry_private.h" line="48" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L48">
      lv_cache_entry_remove_flag [#lv_cache_entry_remove_flag]

      ```c title=" " lineNumbers=1
      void lv_cache_entry_remove_flag(lv_cache_entry_t *entry, uint8_t flags)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `flags` | <ApiLink name="uint8_t" />                                       |
    </ApiMember>

    <ApiMember kind="function" name="lv_cache_entry_has_flag" file="misc/cache/lv_cache_entry_private.h" line="49" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L49">
      lv_cache_entry_has_flag [#lv_cache_entry_has_flag]

      ```c title=" " lineNumbers=1
      bool lv_cache_entry_has_flag(lv_cache_entry_t *entry, uint8_t flags)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             |
      | ------- | ---------------------------------------------------------------- |
      | `entry` | <ApiLink name="lv_cache_entry_t" display="lv_cache_entry_t *" /> |
      | `flags` | <ApiLink name="uint8_t" />                                       |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Structs [#structs]

<ApiMember kind="struct" name="_lv_cache_entry_t">
  \_lv_cache_entry_t [#_lv_cache_entry_t]

  | Member      | Type                                                       | Description |
  | ----------- | ---------------------------------------------------------- | ----------- |
  | `cache`     | <ApiLink name="lv_cache_t" display="const lv_cache_t *" /> |             |
  | `ref_cnt`   | <ApiLink name="int32_t" />                                 |             |
  | `node_size` | <ApiLink name="uint32_t" />                                |             |
  | `flags`     | <ApiLink name="uint8_t" />                                 |             |
</ApiMember>

<TypeUsedBy name="_lv_cache_entry_t" count="2">
  * `lv_nanovg_fbo_cache_release` — param `entry`
  * `lv_nanovg_fbo_cache_entry_to_fb` — param `entry`
</TypeUsedBy>

Macros [#macros]

<ApiMember kind="macro" name="LV_CACHE_ENTRY_FLAG_INVALID" file="misc/cache/lv_cache_entry_private.h" line="31" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L31">
  LV_CACHE_ENTRY_FLAG_INVALID [#lv_cache_entry_flag_invalid]

  ```c title=" " lineNumbers=1
  #define LV_CACHE_ENTRY_FLAG_INVALID (1 << 0) /** Flag indicating if the entry is invalid and can be released */
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_CACHE_ENTRY_FLAG_DISABLE_DELETE" file="misc/cache/lv_cache_entry_private.h" line="32" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L32">
  LV_CACHE_ENTRY_FLAG_DISABLE_DELETE [#lv_cache_entry_flag_disable_delete]

  ```c title=" " lineNumbers=1
  #define LV_CACHE_ENTRY_FLAG_DISABLE_DELETE (1 << 1) /** This flag should be set if the cache class is managing the memory of the entry itself*/
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_CACHE_ENTRY_FLAG_CLASS_CUSTOM" file="misc/cache/lv_cache_entry_private.h" line="33" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/cache/lv_cache_entry_private.h#L33">
  LV_CACHE_ENTRY_FLAG_CLASS_CUSTOM [#lv_cache_entry_flag_class_custom]

  ```c title=" " lineNumbers=1
  #define LV_CACHE_ENTRY_FLAG_CLASS_CUSTOM (1 << 7) /**A custom flag that can be used by the different cache classes*/
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;stdint.h&#x22;, &#x22;lv_types.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;]" />
