![]() |
![]() |
![]() |
Liboobs (System configuration management) Reference Manual | ![]() |
---|---|---|---|---|
enum OobsModemVolume; enum OobsDialType; #define OOBS_TYPE_MODEM_VOLUME #define OOBS_TYPE_DIAL_TYPE OobsIfaceModem; void oobs_iface_modem_set_serial_port (OobsIfaceModem *iface, const gchar *serial_port); const gchar* oobs_iface_modem_get_serial_port (OobsIfaceModem *iface); void oobs_iface_modem_set_volume (OobsIfaceModem *iface, OobsModemVolume volume); OobsModemVolume oobs_iface_modem_get_volume (OobsIfaceModem *iface); void oobs_iface_modem_set_dial_type (OobsIfaceModem *iface, OobsDialType dial_type); OobsDialType oobs_iface_modem_get_dial_type (OobsIfaceModem *iface);
"dial-type" OobsDialType : Read / Write "serial-port" gchararray : Read / Write "volume" OobsModemVolume : Read / Write
typedef enum { OOBS_MODEM_VOLUME_SILENT, OOBS_MODEM_VOLUME_LOW, OOBS_MODEM_VOLUME_MEDIUM, OOBS_MODEM_VOLUME_LOUD } OobsModemVolume;
void oobs_iface_modem_set_serial_port (OobsIfaceModem *iface, const gchar *serial_port);
Sets a serial port to connect with the modem device.
iface : |
An OobsIfaceModem. |
serial_port : |
a new serial port for the interface. |
const gchar* oobs_iface_modem_get_serial_port (OobsIfaceModem *iface);
Returns the serial port used to communicate with the modem device.
iface : |
An OobsIfaceModem. |
Returns : | A pointer to the serial port as a string. This string must not be freed, modified or stored. |
void oobs_iface_modem_set_volume (OobsIfaceModem *iface, OobsModemVolume volume);
Sets the modem volume.
iface : |
An OobsIfaceModem. |
volume : |
the modem volume. |
OobsModemVolume oobs_iface_modem_get_volume (OobsIfaceModem *iface);
Returns the modem volume.
iface : |
An OobsIfaceModem. |
Returns : | the modem volume. |
void oobs_iface_modem_set_dial_type (OobsIfaceModem *iface, OobsDialType dial_type);
Sets the dialing type for the modem connection.
iface : |
An OobsIfaceModem. |
dial_type : |
dialing type for the modem connection. |
OobsDialType oobs_iface_modem_get_dial_type (OobsIfaceModem *iface);
Returns the dialing type for the modem connection.
iface : |
An OobsIfaceModem. |
Returns : | the dialing type. |
"dial-type"
property"dial-type" OobsDialType : Read / Write
Modem dial type.
Default value: OOBS_DIAL_TYPE_TONES
"serial-port"
property"serial-port" gchararray : Read / Write
Serial port for the connection.
Default value: NULL
"volume"
property"volume" OobsModemVolume : Read / Write
Modem volume.
Default value: OOBS_MODEM_VOLUME_SILENT