pidgin/pidgin

zephyr_login refactoring

2021-01-11, Arkadiy Illarionov
d06e6660b39c
zephyr_login refactoring

* Add `login_tzc` and `login_zeph02` functions to remove redundant comparison
* Add `get_zephyr_realm` function to reduce code duplication
* Extract some functions
* Use `FALSE` in `purple_account_get_bool`
* Replace `read_anyone` and `read_zsubs` variables with functions calls

Testing Done:
Compile.

Reviewed at https://reviews.imfreedom.org/r/405/
/*
* untar.h
*
* Author: Herman Bloggs <hermanator12002@yahoo.com>
* Date: April, 2003
* Description: untar.c header
*/
#ifndef _UNTAR_H_
#define _UNTAR_H_
G_BEGIN_DECLS
typedef enum {
UNTAR_LISTING = (1 << 0),
UNTAR_QUIET = (1 << 1),
UNTAR_VERBOSE = (1 << 2),
UNTAR_FORCE = (1 << 3),
UNTAR_ABSPATH = (1 << 4),
UNTAR_CONVERT = (1 << 5)
} untar_opt;
int untar(const char *filename, const char *destdir, untar_opt options);
G_END_DECLS
#endif