HEX
Server: LiteSpeed
System: Linux server.searchcove.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: lurax (1083)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/str-table.h
#ifndef STR_TABLE_H
#define STR_TABLE_H

/* Hash table containing string -> refcount. */

struct str_table *str_table_init(void);
void str_table_deinit(struct str_table **table);

/* Returns TRUE if there are no referenced strings in the table. */
bool str_table_is_empty(struct str_table *table);

/* Return string allocated from the strtable and increase its reference
   count. */
const char *str_table_ref(struct str_table *table, const char *str);
/* Decrease string's reference count, freeing it if it reaches zero.
   The str pointer must have been returned by the str_table_ref(). */
void str_table_unref(struct str_table *table, const char **str);

#endif