|
Last change
on this file was
76,
checked in by megakiss, 10 years ago
|
|
1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함
|
-
Property svn:executable set to
*
|
|
File size:
610 bytes
|
| Line | |
|---|
| 1 | #include "tsid_table.h" |
|---|
| 2 | #include "bdispatch.h" |
|---|
| 3 | /* |
|---|
| 4 | Summary: |
|---|
| 5 | Try to figure out UTC offset from the TSID using the TSID table. |
|---|
| 6 | Description: |
|---|
| 7 | Try to figure out UTC offset from the TSID using the TSID table. |
|---|
| 8 | return non-zero on failure |
|---|
| 9 | */ |
|---|
| 10 | |
|---|
| 11 | int tsid_to_utc_offset(unsigned short tsid, int *p_offset, char *p_dst) |
|---|
| 12 | { |
|---|
| 13 | int i; |
|---|
| 14 | utc_offset_t *p_tsid_table = (utc_offset_t*)g_p_dsp->ui_comp.tsid_table; |
|---|
| 15 | for (i = 0; i < g_p_dsp->ui_comp.tsid_table_num; ++i) |
|---|
| 16 | { |
|---|
| 17 | if (tsid == p_tsid_table[i].tsid) |
|---|
| 18 | { |
|---|
| 19 | *p_offset = p_tsid_table[i].offset * 3600; |
|---|
| 20 | *p_dst = p_tsid_table[i].dst; |
|---|
| 21 | return 0; |
|---|
| 22 | } |
|---|
| 23 | } |
|---|
| 24 | return -1; |
|---|
| 25 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.