source: svn/newcon3bcm2_21bu/dta/src/app/ntia/tsid_to_utc_off.c

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 626 bytes
Line 
1#include "tsid_table.h"
2
3extern utc_offset_t g_utc_offset[];
4extern int g_utc_offset_size;
5
6/*
7Summary:
8    Try to figure out UTC offset from the TSID using the TSID table.
9Description:
10    Try to figure out UTC offset from the TSID using the TSID table.
11        return non-zero on failure
12*/
13
14int tsid_to_utc_offset(unsigned short tsid, int *p_offset, char *p_dst)
15{
16        int i;
17        utc_offset_t *p_tsid_table = (utc_offset_t*)g_utc_offset;
18        for (i = 0; i < g_utc_offset_size; ++i)
19        {
20                if (tsid == p_tsid_table[i].tsid)
21                {
22                        *p_offset = p_tsid_table[i].offset * 3600;
23                        *p_dst = p_tsid_table[i].dst;
24                        return 0;
25                }
26        }
27        return -1;
28}
Note: See TracBrowser for help on using the repository browser.