Opened 18 years ago
Closed 18 years ago
#4063 closed defect (fixed)
Perl bindings-Add recstatustype variables to MythTV.pm
| Reported by: | Owned by: | xris | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | perl / nuvexport | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
The attached patch adds recstatustype variables to MythTV.pm to allow direct comparison with the recstatus field in Program. Currently, comparisons must be done as:
($show->{'recstatus'} == 10)
or
($RecStatus_Types{$show->{'recstatus'}} == 'Inactive')
After the patch, the comparison could be done with:
($show->{'recstatus'} == $recstatustype_inactive)
the main benefit of the final approach is the "compiler-checking" provided by the variable name to help catch typographical errors.
Attachments (1)
Change History (2)
by , 18 years ago
| Attachment: | mythtv-perl_bindings-recstatustype_variables.patch added |
|---|
comment:1 by , 18 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

(In [14624]) add recstatus constant patch from sphery, with minor modifications. Closes #4063