~cyphermox/+junk/bluez-debug

« back to all changes in this revision

Viewing changes to compat/sdp.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-07-04 13:28:49 UTC
  • mfrom: (1.1.38)
  • Revision ID: package-import@ubuntu.com-20120704132849-tmwu1x7p2vxcclt1
Tags: 4.101-0ubuntu1
* New upstream release
* debian/libbluetooth3.symbols:
  - Updated
* debian/patches/10-unregister_interface_on_exit.patch:
* debian/patches/11-explicitly_close.patch:
* debian/patches/python3.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
static sdp_record_t *record = NULL;
48
48
static sdp_session_t *session = NULL;
49
49
 
50
 
static void add_lang_attr(sdp_record_t *r)
51
 
{
52
 
        sdp_lang_attr_t base_lang;
53
 
        sdp_list_t *langs = 0;
54
 
 
55
 
        /* UTF-8 MIBenum (http://www.iana.org/assignments/character-sets) */
56
 
        base_lang.code_ISO639 = (0x65 << 8) | 0x6e;
57
 
        base_lang.encoding = 106;
58
 
        base_lang.base_offset = SDP_PRIMARY_LANG_BASE;
59
 
        langs = sdp_list_append(0, &base_lang);
60
 
        sdp_set_lang_attr(r, langs);
61
 
        sdp_list_free(langs, 0);
62
 
}
63
 
 
64
50
static void epox_endian_quirk(unsigned char *data, int size)
65
51
{
66
52
        /* USAGE_PAGE (Keyboard)        05 07
448
434
        aproto = sdp_list_append(NULL, apseq);
449
435
        sdp_set_access_protos(record, aproto);
450
436
 
451
 
        add_lang_attr(record);
 
437
        sdp_add_lang_attr(record);
452
438
 
453
439
        sdp_list_free(proto[0], NULL);
454
440
        sdp_list_free(proto[1], NULL);