pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

vvconfig.c File Reference
#include "internal.h"
#include "debug.h"
#include "mediamanager.h"
#include "media-gst.h"
#include "version.h"
#include "gtkplugin.h"
#include "gtkutils.h"
#include "gtkprefs.h"
#include <gst/interfaces/propertyprobe.h>
Include dependency graph for vvconfig.c:

Go to the source code of this file.

Data Structures

struct  BusCbCtx
 

Typedefs

typedef GtkWidget *(* FrameCreateCb) (PurplePlugin *plugin)
 

Functions

static GList * get_element_devices (const gchar *element_name)
 
static GList * get_element_plugins (const gchar **plugins)
 
static void device_changed_cb (const gchar *name, PurplePrefType type, gconstpointer value, gpointer data)
 
static void get_plugin_frame (GtkWidget *parent, GtkSizeGroup *sg, const gchar *name, const gchar *plugin_label, const gchar **plugin_strs, const gchar *plugin_pref, const gchar *device_label, const gchar *device_pref)
 
static GtkWidget * get_plugin_config_frame (PurplePlugin *plugin)
 
static GstElement * create_video_src (PurpleMedia *media, const gchar *session_id, const gchar *participant)
 
static void videosink_disable_last_sample (GstElement *sink)
 
static void autovideosink_child_added_cb (GstChildProxy *child_proxy, GObject *object, gpointer user_data)
 
static GstElement * create_video_sink (PurpleMedia *media, const gchar *session_id, const gchar *participant)
 
static GstElement * create_audio_src (PurpleMedia *media, const gchar *session_id, const gchar *participant)
 
static GstElement * create_audio_sink (PurpleMedia *media, const gchar *session_id, const gchar *participant)
 
static void set_element_info_cond (PurpleMediaElementInfo *old_info, PurpleMediaElementInfo *new_info, const gchar *id)
 
static gboolean plugin_load (PurplePlugin *plugin)
 
static void config_destroy (GtkObject *w, gpointer nul)
 
static void config_close (GtkObject *w, gpointer nul)
 
static void show_config (PurplePluginAction *action)
 
static GstElement * create_pipeline ()
 
static void on_volume_change_cb (GtkRange *range, GstBin *pipeline)
 
static gdouble gst_msg_db_to_percent (GstMessage *msg, gchar *value_name)
 
static gboolean gst_bus_cb (GstBus *bus, GstMessage *msg, BusCbCtx *ctx)
 
static void voice_test_frame_destroy_cb (GtkObject *w, GstElement *pipeline)
 
static void volume_scale_destroy_cb (GtkRange *volume, gpointer nul)
 
static gchar * threshold_value_format_cb (GtkScale *scale, gdouble value)
 
static void threshold_scale_destroy_cb (GtkRange *threshold, gpointer nul)
 
static GtkWidget * get_voice_test_frame (PurplePlugin *plugin)
 
static GList * actions (PurplePlugin *plugin, gpointer context)
 
static gboolean plugin_unload (PurplePlugin *plugin)
 
static void init_plugin (PurplePlugin *plugin)
 

Variables

static GtkWidget * window = NULL
 
static PurpleMediaElementInfoold_video_src = NULL
 
static PurpleMediaElementInfoold_video_sink = NULL
 
static PurpleMediaElementInfoold_audio_src = NULL
 
static PurpleMediaElementInfoold_audio_sink = NULL
 
static const gchar * AUDIO_SRC_PLUGINS []
 
static const gchar * AUDIO_SINK_PLUGINS []
 
static const gchar * VIDEO_SRC_PLUGINS []
 
static const gchar * VIDEO_SINK_PLUGINS []
 
static PidginPluginUiInfo ui_info
 
static PurplePluginInfo info
 

Typedef Documentation

◆ FrameCreateCb

typedef GtkWidget*(* FrameCreateCb) (PurplePlugin *plugin)

Definition at line 567 of file vvconfig.c.

Function Documentation

◆ actions()

static GList* actions ( PurplePlugin plugin,
gpointer  context 
)
static

◆ autovideosink_child_added_cb()

static void autovideosink_child_added_cb ( GstChildProxy *  child_proxy,
GObject *  object,
gpointer  user_data 
)
static

Definition at line 385 of file vvconfig.c.

References videosink_disable_last_sample().

Referenced by create_video_sink().

◆ config_close()

static void config_close ( GtkObject *  w,
gpointer  nul 
)
static

Definition at line 562 of file vvconfig.c.

References window.

Referenced by show_config().

◆ config_destroy()

static void config_destroy ( GtkObject *  w,
gpointer  nul 
)
static

Definition at line 555 of file vvconfig.c.

References NULL, purple_debug_info(), and window.

Referenced by show_config().

◆ create_audio_sink()

static GstElement* create_audio_sink ( PurpleMedia media,
const gchar *  session_id,
const gchar *  participant 
)
static

◆ create_audio_src()

static GstElement* create_audio_src ( PurpleMedia media,
const gchar *  session_id,
const gchar *  participant 
)
static

◆ create_pipeline()

static GstElement* create_pipeline ( )
static

Definition at line 597 of file vvconfig.c.

References create_audio_sink(), create_audio_src(), and NULL.

Referenced by get_voice_test_frame().

◆ create_video_sink()

static GstElement* create_video_sink ( PurpleMedia media,
const gchar *  session_id,
const gchar *  participant 
)
static

◆ create_video_src()

static GstElement* create_video_src ( PurpleMedia media,
const gchar *  session_id,
const gchar *  participant 
)
static

◆ device_changed_cb()

static void device_changed_cb ( const gchar *  name,
PurplePrefType  type,
gconstpointer  value,
gpointer  data 
)
static

◆ get_element_devices()

static GList* get_element_devices ( const gchar *  element_name)
static

◆ get_element_plugins()

static GList* get_element_plugins ( const gchar **  plugins)
static

Definition at line 175 of file vvconfig.c.

References NULL, and plugins.

Referenced by get_plugin_frame().

◆ get_plugin_config_frame()

static GtkWidget* get_plugin_config_frame ( PurplePlugin plugin)
static

◆ get_plugin_frame()

static void get_plugin_frame ( GtkWidget *  parent,
GtkSizeGroup *  sg,
const gchar *  name,
const gchar *  plugin_label,
const gchar **  plugin_strs,
const gchar *  plugin_pref,
const gchar *  device_label,
const gchar *  device_pref 
)
static

◆ get_voice_test_frame()

◆ gst_bus_cb()

static gboolean gst_bus_cb ( GstBus *  bus,
GstMessage *  msg,
BusCbCtx ctx 
)
static

◆ gst_msg_db_to_percent()

static gdouble gst_msg_db_to_percent ( GstMessage *  msg,
gchar *  value_name 
)
static

Definition at line 626 of file vvconfig.c.

References G_GNUC_BEGIN_IGNORE_DEPRECATIONS, G_GNUC_END_IGNORE_DEPRECATIONS, and value.

Referenced by gst_bus_cb().

◆ init_plugin()

static void init_plugin ( PurplePlugin plugin)
static

Definition at line 854 of file vvconfig.c.

◆ on_volume_change_cb()

static void on_volume_change_cb ( GtkRange *  range,
GstBin *  pipeline 
)
static

Definition at line 615 of file vvconfig.c.

References NULL.

Referenced by get_voice_test_frame().

◆ plugin_load()

◆ plugin_unload()

static gboolean plugin_unload ( PurplePlugin plugin)
static

◆ set_element_info_cond()

static void set_element_info_cond ( PurpleMediaElementInfo old_info,
PurpleMediaElementInfo new_info,
const gchar *  id 
)
static

◆ show_config()

◆ threshold_scale_destroy_cb()

static void threshold_scale_destroy_cb ( GtkRange *  threshold,
gpointer  nul 
)
static

Definition at line 707 of file vvconfig.c.

References purple_prefs_set_int().

Referenced by get_voice_test_frame().

◆ threshold_value_format_cb()

static gchar* threshold_value_format_cb ( GtkScale *  scale,
gdouble  value 
)
static

Definition at line 701 of file vvconfig.c.

References value.

Referenced by get_voice_test_frame().

◆ videosink_disable_last_sample()

static void videosink_disable_last_sample ( GstElement *  sink)
static

Definition at line 375 of file vvconfig.c.

References FALSE, klass, and NULL.

Referenced by autovideosink_child_added_cb(), and create_video_sink().

◆ voice_test_frame_destroy_cb()

static void voice_test_frame_destroy_cb ( GtkObject *  w,
GstElement *  pipeline 
)
static

Definition at line 685 of file vvconfig.c.

Referenced by get_voice_test_frame().

◆ volume_scale_destroy_cb()

static void volume_scale_destroy_cb ( GtkRange *  volume,
gpointer  nul 
)
static

Definition at line 694 of file vvconfig.c.

References purple_prefs_set_int().

Referenced by get_voice_test_frame().

Variable Documentation

◆ AUDIO_SINK_PLUGINS

const gchar* AUDIO_SINK_PLUGINS[]
static
Initial value:
= {
"alsasink", "ALSA",
"artsdsink", "aRts",
"esdsink", "ESD",
"osssink", "OSS",
"pulsesink", "PulseAudio",
"sndiosink", "sndio",
}

Definition at line 52 of file vvconfig.c.

Referenced by get_plugin_config_frame().

◆ AUDIO_SRC_PLUGINS

const gchar* AUDIO_SRC_PLUGINS[]
static
Initial value:
= {
"alsasrc", "ALSA",
"osssrc", "OSS",
"pulsesrc", "PulseAudio",
"sndiosrc", "sndio",
"audiotestsrc", "Test Sound",
}

Definition at line 41 of file vvconfig.c.

Referenced by get_plugin_config_frame().

◆ info

PurplePluginInfo info
static

Definition at line 817 of file vvconfig.c.

◆ old_audio_sink

PurpleMediaElementInfo * old_audio_sink = NULL
static

Definition at line 39 of file vvconfig.c.

Referenced by create_audio_sink(), plugin_load(), and plugin_unload().

◆ old_audio_src

PurpleMediaElementInfo * old_audio_src = NULL
static

Definition at line 39 of file vvconfig.c.

Referenced by create_audio_src(), plugin_load(), and plugin_unload().

◆ old_video_sink

PurpleMediaElementInfo * old_video_sink = NULL
static

Definition at line 38 of file vvconfig.c.

Referenced by create_video_sink(), plugin_load(), and plugin_unload().

◆ old_video_src

PurpleMediaElementInfo* old_video_src = NULL
static

Definition at line 38 of file vvconfig.c.

Referenced by create_video_src(), plugin_load(), and plugin_unload().

◆ ui_info

PidginPluginUiInfo ui_info
static
Initial value:

Definition at line 807 of file vvconfig.c.

◆ VIDEO_SINK_PLUGINS

const gchar* VIDEO_SINK_PLUGINS[]
static
Initial value:
= {
"directdrawsink","DirectDraw",
"glimagesink", "OpenGL",
"ximagesink", "X Window System",
"xvimagesink", "X Window System (Xv)",
}

Definition at line 73 of file vvconfig.c.

Referenced by get_plugin_config_frame().

◆ VIDEO_SRC_PLUGINS

const gchar* VIDEO_SRC_PLUGINS[]
static
Initial value:
= {
"videotestsrc", "Test Input",
"dshowvideosrc","DirectDraw",
"ksvideosrc", "KS Video",
"qcamsrc", "Quickcam",
"v4lsrc", "Video4Linux",
"v4l2src", "Video4Linux2",
"v4lmjpegsrc", "Video4Linux MJPEG",
}

Definition at line 62 of file vvconfig.c.

Referenced by get_plugin_config_frame().

◆ window

GtkWidget* window = NULL
static

Definition at line 36 of file vvconfig.c.

Referenced by config_close(), config_destroy(), and show_config().

NULL
#define NULL
Definition: getopt1.c:52
get_plugin_config_frame
static GtkWidget * get_plugin_config_frame(PurplePlugin *plugin)
Definition: vvconfig.c:310