<commit_before>#ifndef fooaudiomgrfoo
#define fooaudiomgrfoo

#include "userdata.h"


/* error codes */
#define E_OK              0
#define E_UNKNOWN         1
#define E_OUT_OF_RANGE    2
#define E_NOT_USED        3
#define E_DATABSE_ERROR   4
#define E_ALREADY_EXISTS  5
#define E_NO_CHANGE       6
#define E_NOT_POSSIBLE    7
#define E_NON_EXISTENT    8
#define E_ABORTED         9
#define E_WRONG_FORMAT    10



struct am_domainreg_data {
    uint16_t       domain_id;
    const char    *name;      /**< domain name in audio manager  */
    const char    *bus_name;  /**< audio manager's internal bus name
                                   (not to confuse this with D-Bus name)  */
    const char    *node_name; /**< node name on audio manager's internal bus */
    pa_bool_t      early;
    pa_bool_t      complete;
    uint16_t       state;
};

struct am_nodereg_data {
    const char  *key;        /* for node lookup's */
    uint16_t     id;
    const char  *name;
    uint16_t     domain;
    uint16_t     class;
    uint16_t     state;      /* 1=on, 2=off */
    int16_t      volume;
    bool         visible;
    struct {
        int16_t  status;     /* 1=available, 2=unavailable */
        int16_t  reason;     /* 1=newmedia, 2=same media, 3=nomedia */
    } avail;
    uint16_t     mute;
    uint16_t     mainvol;
    uint16_t     interrupt;  /* 1=off, 2=interrupted */
};

struct am_nodeunreg_data {
    uint16_t     id;
    const char  *name;
};


struct am_connect_data {
    uint16_t     handle;
    uint16_t     connection;
    uint16_t     source;
    uint16_t     sink;
    int16_t      format;
};

struct am_ack_data {
    uint32_t      handle;
    uint16_t      param1;
    uint16_t      param2;
    uint16_t      error;
};


pa_audiomgr *pa_audiomgr_init(struct userdata *);
void pa_audiomgr_done(struct userdata *);<commit_msg>dbusif: using dbus_xxx types instead of pa_xxx and stdint types<commit_after>#ifndef fooaudiomgrfoo
#define fooaudiomgrfoo

#include <dbus/dbus.h>

#include "userdata.h"


/* error codes */
#define E_OK              0
#define E_UNKNOWN         1
#define E_OUT_OF_RANGE    2
#define E_NOT_USED        3
#define E_DATABSE_ERROR   4
#define E_ALREADY_EXISTS  5
#define E_NO_CHANGE       6
#define E_NOT_POSSIBLE    7
#define E_NON_EXISTENT    8
#define E_ABORTED         9
#define E_WRONG_FORMAT    10



struct am_domainreg_data {
    dbus_uint16_t  domain_id;
    const char    *name;      /**< domain name in audio manager  */
    const char    *bus_name;  /**< audio manager's internal bus name
                                   (not to confuse this with D-Bus name)  */
    const char    *node_name; /**< node name on audio manager's internal bus*/
    dbus_bool_t    early;
    dbus_bool_t    complete;
    dbus_uint16_t  state;
};

struct am_nodereg_data {
    const char    *key;        /* for node lookup's */
    dbus_uint16_t  id;
    const char    *name;
    dbus_uint16_t  domain;
    dbus_uint16_t  class;
    dbus_uint16_t  state;      /* 1=on, 2=off */
    dbus_int16_t   volume;
    dbus_bool_t    visible;
    struct {
        dbus_int16_t  status; /* 1=available, 2=unavailable */
        dbus_int16_t  reason; /* 1=newmedia, 2=same media, 3=nomedia */
    } avail;
    dbus_uint16_t  mute;
    dbus_uint16_t  mainvol;
    dbus_uint16_t  interrupt;  /* 1=off, 2=interrupted */
};

struct am_nodeunreg_data {
    dbus_uint16_t  id;
    const char    *name;
};


struct am_connect_data {
    dbus_uint16_t  handle;
    dbus_uint16_t  connection;
    dbus_uint16_t  source;
    dbus_uint16_t  sink;
    dbus_int16_t   format;
};

struct am_ack_data {
    dbus_uint32_t  handle;
    dbus_uint16_t  param1;
    dbus_uint16_t  param2;
    dbus_uint16_t  error;
};


pa_audiomgr *pa_audiomgr_init(struct userdata *);
void pa_audiomgr_done(struct userdata *);
{'fraction_non_alphanumeric': 0.0779900549594347, 'fraction_numerical': 0.03506935357236326, 'mean_word_length': 2.303370786516854, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4842865', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1394, 'n_words': 339}