forked from external/yambar
Fix remaining typos in the codebase (and update CI checks)
This commit is contained in:
parent
00234696fe
commit
b3313cefc6
7 changed files with 12 additions and 12 deletions
|
@ -12,7 +12,7 @@ steps:
|
||||||
- python3 -m venv codespell-venv
|
- python3 -m venv codespell-venv
|
||||||
- source codespell-venv/bin/activate
|
- source codespell-venv/bin/activate
|
||||||
- pip install codespell
|
- pip install codespell
|
||||||
- codespell README.md CHANGELOG.md *.c *.h doc/*.scd
|
- codespell README.md CHANGELOG.md *.c *.h doc/*.scd bar decorations modules particles examples
|
||||||
- deactivate
|
- deactivate
|
||||||
|
|
||||||
- name: subprojects
|
- name: subprojects
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calculate total width of left/center/rigth groups.
|
* Calculate total width of left/center/right groups.
|
||||||
* Note: begin_expose() must have been called
|
* Note: begin_expose() must have been called
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#
|
#
|
||||||
# Now the fun part
|
# Now the fun part
|
||||||
#
|
#
|
||||||
# Exemple configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
# - script:
|
# - script:
|
||||||
# path: /absolute/path/to/dwl-tags.sh
|
# path: /absolute/path/to/dwl-tags.sh
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
# {aur} int number of aur packages
|
# {aur} int number of aur packages
|
||||||
# {pkg} int sum of both
|
# {pkg} int sum of both
|
||||||
#
|
#
|
||||||
# Exemples configuration:
|
# Examples configuration:
|
||||||
# - script:
|
# - script:
|
||||||
# path: /absolute/path/to/pacman.sh
|
# path: /absolute/path/to/pacman.sh
|
||||||
# args: []
|
# args: []
|
||||||
|
|
|
@ -129,7 +129,7 @@ refresh_device_stats(struct private *m)
|
||||||
|
|
||||||
while ((read = getline(&line, &len, fp)) != -1) {
|
while ((read = getline(&line, &len, fp)) != -1) {
|
||||||
/*
|
/*
|
||||||
* For an explanation of the fields bellow, see
|
* For an explanation of the fields below, see
|
||||||
* https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
* https://www.kernel.org/doc/Documentation/ABI/testing/procfs-diskstats
|
||||||
*/
|
*/
|
||||||
uint8_t major_number = 0;
|
uint8_t major_number = 0;
|
||||||
|
|
|
@ -231,7 +231,7 @@ process_line(char *line, struct module *module)
|
||||||
/* No need to check error IMHO */
|
/* No need to check error IMHO */
|
||||||
*target = strtoul(string, NULL, 10);
|
*target = strtoul(string, NULL, 10);
|
||||||
|
|
||||||
/* Populate informations */
|
/* Populate information */
|
||||||
if (index == 6) {
|
if (index == 6) {
|
||||||
for (size_t id = 1; id <= private->number_of_tags; ++id) {
|
for (size_t id = 1; id <= private->number_of_tags; ++id) {
|
||||||
uint32_t mask = 1 << (id - 1);
|
uint32_t mask = 1 << (id - 1);
|
||||||
|
|
|
@ -33,7 +33,7 @@ struct output_informations {
|
||||||
uint32_t device_id;
|
uint32_t device_id;
|
||||||
uint32_t card_profile_device_id;
|
uint32_t card_profile_device_id;
|
||||||
|
|
||||||
/* informations */
|
/* information */
|
||||||
bool muted;
|
bool muted;
|
||||||
uint16_t linear_volume; /* classic volume */
|
uint16_t linear_volume; /* classic volume */
|
||||||
uint16_t cubic_volume; /* volume a la pulseaudio */
|
uint16_t cubic_volume; /* volume a la pulseaudio */
|
||||||
|
@ -333,7 +333,7 @@ device_events_param(void *userdata, int seq, uint32_t id, uint32_t index, uint32
|
||||||
X_FREE_SET(route->icon_name, X_STRDUP(data.icon_name));
|
X_FREE_SET(route->icon_name, X_STRDUP(data.icon_name));
|
||||||
route->direction = data.direction;
|
route->direction = data.direction;
|
||||||
|
|
||||||
/* set missing informations if possible */
|
/* set missing information if possible */
|
||||||
struct private *private = device->data->module->private;
|
struct private *private = device->data->module->private;
|
||||||
struct node *binded_node = NULL;
|
struct node *binded_node = NULL;
|
||||||
struct output_informations *output_informations = NULL;
|
struct output_informations *output_informations = NULL;
|
||||||
|
@ -358,7 +358,7 @@ device_events_param(void *userdata, int seq, uint32_t id, uint32_t index, uint32
|
||||||
if (output_informations->card_profile_device_id != route->profile_device_id)
|
if (output_informations->card_profile_device_id != route->profile_device_id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Update missing informations */
|
/* Update missing information */
|
||||||
X_FREE_SET(output_informations->form_factor, X_STRDUP(route->form_factor));
|
X_FREE_SET(output_informations->form_factor, X_STRDUP(route->form_factor));
|
||||||
X_FREE_SET(output_informations->icon, X_STRDUP(route->icon_name));
|
X_FREE_SET(output_informations->icon, X_STRDUP(route->icon_name));
|
||||||
|
|
||||||
|
@ -384,7 +384,7 @@ node_events_info(void *userdata, struct pw_node_info const *info)
|
||||||
for (size_t i = 0; i < info->n_params; ++i) {
|
for (size_t i = 0; i < info->n_params; ++i) {
|
||||||
if (info->params[i].id == SPA_PARAM_Props) {
|
if (info->params[i].id == SPA_PARAM_Props) {
|
||||||
void *target_node = (node_data->is_sink ? data->node_sink : data->node_source);
|
void *target_node = (node_data->is_sink ? data->node_sink : data->node_source);
|
||||||
/* Found it, will emit a param event, the parem will then be handled
|
/* Found it, will emit a param event, the param will then be handled
|
||||||
* in node_events_param */
|
* in node_events_param */
|
||||||
pw_node_enum_params(target_node, 0, info->params[i].id, 0, -1, NULL);
|
pw_node_enum_params(target_node, 0, info->params[i].id, 0, -1, NULL);
|
||||||
break;
|
break;
|
||||||
|
@ -419,7 +419,7 @@ node_events_info(void *userdata, struct pw_node_info const *info)
|
||||||
output_informations->card_profile_device_id = value;
|
output_informations->card_profile_device_id = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Device's informations has an more important priority than node's informations */
|
/* Device's information has an more important priority than node's information */
|
||||||
/* icon_name */
|
/* icon_name */
|
||||||
struct route *route = node_find_route(data, node_data->is_sink);
|
struct route *route = node_find_route(data, node_data->is_sink);
|
||||||
if (route != NULL && route->icon_name != NULL)
|
if (route != NULL && route->icon_name != NULL)
|
||||||
|
@ -659,7 +659,7 @@ static void
|
||||||
try_to_bind_node(struct node_data *node_data, char const *target_name, struct node **target_node, void **target_proxy,
|
try_to_bind_node(struct node_data *node_data, char const *target_name, struct node **target_node, void **target_proxy,
|
||||||
struct spa_hook *target_listener)
|
struct spa_hook *target_listener)
|
||||||
{
|
{
|
||||||
/* profile deactived */
|
/* profile deactivated */
|
||||||
if (target_name == NULL)
|
if (target_name == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue