source_output_idx = PA_INVALID_INDEX,
sink_idx = PA_INVALID_INDEX;
-static pa_bool_t short_list_format = FALSE;
+static bool short_list_format = false;
static uint32_t module_index;
static int32_t latency_offset;
-static pa_bool_t suspend;
+static bool suspend;
static pa_volume_t volume;
static enum volume_flags {
VOL_UINT = 0,
static size_t sample_length = 0;
static int actions = 1;
-static pa_bool_t nl = FALSE;
+static bool nl = false;
static enum {
NONE,
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
if (short_list_format) {
printf("%u\t%s\t%s\t%s\t%s\n",
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
if (short_list_format) {
printf("%u\t%s\t%s\t%s\t%s\n",
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_snprintf(t, sizeof(t), "%u", i->n_used);
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_snprintf(t, sizeof(t), "%u", i->owner_module);
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_snprintf(t, sizeof(t), "%u", i->owner_module);
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_snprintf(t, sizeof(t), "%u", i->owner_module);
pa_snprintf(k, sizeof(k), "%u", i->client);
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_snprintf(t, sizeof(t), "%u", i->owner_module);
pa_snprintf(k, sizeof(k), "%u", i->client);
if (nl && !short_list_format)
printf("\n");
- nl = TRUE;
+ nl = true;
pa_bytes_snprint(t, sizeof(t), i->bytes);
}
static void unload_module_by_name_callback(pa_context *c, const pa_module_info *i, int is_last, void *userdata) {
- static pa_bool_t unloaded = FALSE;
+ static bool unloaded = false;
if (is_last < 0) {
pa_log(_("Failed to get module information: %s"), pa_strerror(pa_context_errno(c)));
}
if (is_last) {
- if (unloaded == FALSE)
+ if (unloaded == false)
pa_log(_("Failed to unload module: Module %s not loaded"), module_name);
complete_action();
return;
pa_assert(i);
if (pa_streq(module_name, i->name)) {
- unloaded = TRUE;
+ unloaded = true;
actions++;
pa_operation_unref(pa_context_unload_module(c, i->index, simple_callback, NULL));
}
if (optind < argc) {
if (pa_streq(argv[optind], "stat")) {
action = STAT;
- short_list_format = FALSE;
+ short_list_format = false;
if (optind+1 < argc && pa_streq(argv[optind+1], "short"))
- short_list_format = TRUE;
+ short_list_format = true;
} else if (pa_streq(argv[optind], "info"))
action = INFO;
pa_streq(argv[i], "samples") || pa_streq(argv[i], "cards")) {
list_type = pa_xstrdup(argv[i]);
} else if (pa_streq(argv[i], "short")) {
- short_list_format = TRUE;
+ short_list_format = true;
} else {
pa_log(_("Specify nothing, or one of: %s"), "modules, sinks, sources, sink-inputs, source-outputs, clients, samples, cards");
goto quit;