Change-Id: Ia015376523dcc505d355b22b9d40eaa51a0308bc
Signed-off-by: jino.cho <jino.cho@samsung.com>
void pwm_proxy_init(void);
void pwm_proxy_deinit(void);
void pwm_proxy_init(void);
void pwm_proxy_deinit(void);
-int peripheral_gdbus_pwm_open(peripheral_pwm_h dev, int device, int channel);
-int peripheral_gdbus_pwm_close(peripheral_pwm_h dev);
-int peripheral_gdbus_pwm_set_period(peripheral_pwm_h dev, int period);
-int peripheral_gdbus_pwm_get_period(peripheral_pwm_h dev, int *period);
-int peripheral_gdbus_pwm_set_duty_cycle(peripheral_pwm_h dev, int duty_cycle);
-int peripheral_gdbus_pwm_get_duty_cycle(peripheral_pwm_h dev, int *duty_cycle);
-int peripheral_gdbus_pwm_set_enable(peripheral_pwm_h dev, peripheral_pwm_state_e enable);
+int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int device, int channel);
+int peripheral_gdbus_pwm_close(peripheral_pwm_h pwm);
+int peripheral_gdbus_pwm_set_period(peripheral_pwm_h pwm, int period);
+int peripheral_gdbus_pwm_get_period(peripheral_pwm_h pwm, int *period);
+int peripheral_gdbus_pwm_set_duty_cycle(peripheral_pwm_h pwm, int duty_cycle);
+int peripheral_gdbus_pwm_get_duty_cycle(peripheral_pwm_h pwm, int *duty_cycle);
+int peripheral_gdbus_pwm_set_enable(peripheral_pwm_h pwm, peripheral_pwm_state_e enable);
#endif /* __PERIPHERAL_GDBUS_PWM_H__ */
#endif /* __PERIPHERAL_GDBUS_PWM_H__ */
-int peripheral_gdbus_pwm_open(peripheral_pwm_h dev, int device, int channel)
+int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int device, int channel)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
-int peripheral_gdbus_pwm_close(peripheral_pwm_h dev)
+int peripheral_gdbus_pwm_close(peripheral_pwm_h pwm)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_close_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_close_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,
&ret,
NULL,
&error) == FALSE) {
&ret,
NULL,
&error) == FALSE) {
-int peripheral_gdbus_pwm_set_period(peripheral_pwm_h dev, int period)
+int peripheral_gdbus_pwm_set_period(peripheral_pwm_h pwm, int period)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_period_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_period_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,
-int peripheral_gdbus_pwm_get_period(peripheral_pwm_h dev, int *period)
+int peripheral_gdbus_pwm_get_period(peripheral_pwm_h pwm, int *period)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_get_period_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_get_period_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,
-int peripheral_gdbus_pwm_set_duty_cycle(peripheral_pwm_h dev, int duty_cycle)
+int peripheral_gdbus_pwm_set_duty_cycle(peripheral_pwm_h pwm, int duty_cycle)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_duty_cycle_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_duty_cycle_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,
-int peripheral_gdbus_pwm_get_duty_cycle(peripheral_pwm_h dev, int *duty_cycle)
+int peripheral_gdbus_pwm_get_duty_cycle(peripheral_pwm_h pwm, int *duty_cycle)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_get_duty_cycle_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_get_duty_cycle_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,
-int peripheral_gdbus_pwm_set_enable(peripheral_pwm_h dev, peripheral_pwm_state_e enable)
+int peripheral_gdbus_pwm_set_enable(peripheral_pwm_h pwm, peripheral_pwm_state_e enable)
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
{
GError *error = NULL;
gint32 ret = PERIPHERAL_ERROR_NONE;
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_enable_sync(
pwm_proxy,
/* TODO: Need to reorganize arguments */
if (peripheral_io_gdbus_pwm_call_set_enable_sync(
pwm_proxy,
- dev->device,
- dev->channel,
+ pwm->device,
+ pwm->channel,