/usr/include/cdebconf/question.h is in libdebconfclient0-dev 0.227.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /**
* @file question.c
* @brief interfaces for handling debconf questions
*/
#ifndef _QUESTION_H_
#define _QUESTION_H_
#define DC_QFLAG_SEEN "seen"
#define q_get_extended_description(fe, q) question_get_field((fe), (q), "", "extended_description")
#define q_get_description(fe, q) question_get_field((fe), (q), "", "description")
#define q_get_choices(fe, q) question_get_field((fe), (q), "", "choices")
#define q_get_choices_vals(fe, q) question_get_raw_field((q), "C", "choices")
#define q_get_indices(fe, q) question_get_field((fe), (q), "", "indices")
#define q_get_help(fe, q) question_get_raw_field((q), "", "help")
#define q_get_raw_extended_description(q) question_get_raw_field((q), "", "extended_description")
#define q_get_raw_description(q) question_get_raw_field((q), "", "description")
#define q_get_raw_choices(q) question_get_raw_field((q), "", "choices")
#define q_get_raw_choices_vals(q) question_get_raw_field((q), "C", "choices")
#define q_get_raw_indices(q) question_get_raw_field((q), "", "indices")
struct template;
struct frontend;
struct questionvariable {
char *variable;
char *value;
struct questionvariable *next;
};
struct questionowner {
char *owner;
struct questionowner *next;
};
struct question {
char *tag;
unsigned int ref;
char *value;
unsigned int flags;
struct template *template;
struct questionvariable *variables;
struct questionowner *owners;
struct question *prev, *next;
char *priority;
};
struct question *question_new(const char *tag);
void question_delete(struct question *question);
/**
* @brief duplicate a question
* @param q - the question to be duplicated
* @return a deep copy of the question struct passed as input. the
* template pointer is not changed
*/
struct question *question_dup(const struct question *q);
void question_ref(struct question *);
void question_deref(struct question *);
void question_setvalue(struct question *q, const char *value);
const char *question_getvalue(const struct question *q, const char *lang);
void question_variable_add(struct question *q, const char *var,
const char *value);
void question_variable_delete(struct question *q, const char *var,
const char *value);
const char *question_get_variable(const struct question *q, const char *var);
const char *question_get_priority(const struct question *q);
const char *question_get_tag(const struct question *q);
void question_owner_add(struct question *q, const char *owner);
void question_owner_delete(struct question *q, const char *owner);
void question_set_flag(struct question *q, const char *flag);
void question_clear_flag(struct question *q, const char *flag);
int question_get_flag(const struct question *q, const char *flag);
char *question_get_raw_field(const struct question *q, const char *lang,
const char *field);
char *question_get_field(struct frontend *obj, const struct question *q,
const char *lang, const char *field);
const char *question_get_text(struct frontend *obj, const char *template,
const char *fallback);
#endif
|