mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
display-name.c File Reference
View source
#include <config.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include "edid.h"
Include dependency graph for display-name.c:

Data Structures

struct  Vendor
 

Typedefs

typedef struct Vendor Vendor
 

Functions

static void read_pnp_ids (void)
 
static const char * find_vendor (const char *code)
 
char * make_display_name (const MonitorInfo *info)
 

Variables

static const struct Vendor vendors []
 
static GHashTable * pnp_ids = NULL
 

Typedef Documentation

◆ Vendor

typedef struct Vendor Vendor

Function Documentation

◆ find_vendor()

static const char * find_vendor ( const char *  code)
static

References pnp_ids, read_pnp_ids(), Vendor::vendor_id, Vendor::vendor_name, and vendors.

Referenced by make_display_name().

Here is the call graph for this function:

◆ make_display_name()

char * make_display_name ( const MonitorInfo *  info)

References MonitorInfo::detailed_timings, find_vendor(), DetailedTiming::height_mm, MonitorInfo::height_mm, MonitorInfo::manufacturer_code, MonitorInfo::n_detailed_timings, DetailedTiming::width_mm, and MonitorInfo::width_mm.

Referenced by mate_rr_config_load_current().

Here is the call graph for this function:

◆ read_pnp_ids()

static void read_pnp_ids ( void  )
static

References pnp_ids.

Referenced by find_vendor().

Variable Documentation

◆ pnp_ids

GHashTable* pnp_ids = NULL
static

Referenced by find_vendor(), and read_pnp_ids().

◆ vendors

const struct Vendor vendors[]
static

Referenced by find_vendor().