Skip to content

Commit

Permalink
gui: Add accessors for the 'autotext' variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vzh committed Jun 2, 2024
1 parent 7ead0ab commit 544b466
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libleptongui/src/x_autonumber.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,28 @@ struct autonumber_slot_t {

static AUTONUMBER_TEXT *autotext = NULL;

/* Accessors */

/*! \brief Get the value of \a autotext variable.
*
* \return The current value of \a autotext variable.
*/
AUTONUMBER_TEXT*
schematic_autonumber_get_autotext ()
{
return autotext;
}

/*! \brief Set the value of \a autotext variable.
*
* \param [in] val The new value of \a autotext variable.
*/
void
schematic_autonumber_set_autotext (AUTONUMBER_TEXT *val)
{
autotext = val;
}


/* ***** BACK-END CODE ***************************************************** */

Expand Down

0 comments on commit 544b466

Please sign in to comment.