Deleted Added
full compact
sdp.h (124317) sdp.h (124758)
1/*
2 * sdp.h
3 *
4 * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: sdp.h,v 1.3 2003/09/05 00:33:59 max Exp $
1/*
2 * sdp.h
3 *
4 * Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 12 unchanged lines hidden (view full) ---

21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: sdp.h,v 1.3 2003/09/05 00:33:59 max Exp $
29 * $FreeBSD: head/lib/libsdp/sdp.h 124317 2004-01-09 22:44:28Z emax $
29 * $FreeBSD: head/lib/libsdp/sdp.h 124758 2004-01-20 20:48:26Z emax $
30 */
31
32#ifndef _SDP_H_
33#define _SDP_H_
34
35__BEGIN_DECLS
36
37/*

--- 447 unchanged lines hidden (view full) ---

485
486/******************************************************************************
487 * sdpd interface and Bluetooth profiles data
488 *****************************************************************************/
489
490#define SDP_LOCAL_PATH "/var/run/sdp"
491#define SDP_LOCAL_MTU 4096
492
30 */
31
32#ifndef _SDP_H_
33#define _SDP_H_
34
35__BEGIN_DECLS
36
37/*

--- 447 unchanged lines hidden (view full) ---

485
486/******************************************************************************
487 * sdpd interface and Bluetooth profiles data
488 *****************************************************************************/
489
490#define SDP_LOCAL_PATH "/var/run/sdp"
491#define SDP_LOCAL_MTU 4096
492
493/*
494 * These are NOT defined in spec and only accepted on control sockets.
495 * The response to these request always will be SDP_PDU_ERROR_RESPONSE.
496 * The first 2 bytes (after PDU header) is an error code (in network
497 * byte order). The rest of the data (pdu->len - 2) is a response data
498 * and depend on the request.
499 *
500 * SDP_PDU_SERVICE_REGISTER_REQUEST
501 * pdu_header_t hdr;
502 * u_int16_t uuid; service class UUID (network byte order)
503 * bdaddr_t bdaddr; local BD_ADDR (or ANY)
504 * profile data[pdu->len - sizeof(uuid) - sizeof(bdaddr)]
505 *
506 * in successful reponse additional data will contain 4 bytes record handle
507 *
508 *
509 * SDP_PDU_SERVICE_UNREGISTER_REQUEST
510 * pdu_header_t hdr;
511 * u_int32_t record_handle; (network byte order)
512 *
513 * no additional data in response.
514 *
515 *
516 * SDP_PDU_SERVICE_CHANGE_REQUEST
517 * pdu_header_t hdr;
518 * u_int32_t record_handle; (network byte order)
519 * profile data[pdu->len - sizeof(record_handle)]
520 *
521 * no additional data in response.
522 */
523
524#define SDP_PDU_SERVICE_REGISTER_REQUEST 0x81
525#define SDP_PDU_SERVICE_UNREGISTER_REQUEST 0x82
526#define SDP_PDU_SERVICE_CHANGE_REQUEST 0x83
527
493struct sdp_dun_profile
494{
495 uint8_t server_channel;
496 uint8_t audio_feedback_support;
497 uint8_t reserved[2];
498};
499typedef struct sdp_dun_profile sdp_dun_profile_t;
500typedef struct sdp_dun_profile * sdp_dun_profile_p;
501
502struct sdp_ftrn_profile
503{
504 uint8_t server_channel;
505 uint8_t reserved[3];
506};
507typedef struct sdp_ftrn_profile sdp_ftrn_profile_t;
508typedef struct sdp_ftrn_profile * sdp_ftrn_profile_p;
509
528struct sdp_dun_profile
529{
530 uint8_t server_channel;
531 uint8_t audio_feedback_support;
532 uint8_t reserved[2];
533};
534typedef struct sdp_dun_profile sdp_dun_profile_t;
535typedef struct sdp_dun_profile * sdp_dun_profile_p;
536
537struct sdp_ftrn_profile
538{
539 uint8_t server_channel;
540 uint8_t reserved[3];
541};
542typedef struct sdp_ftrn_profile sdp_ftrn_profile_t;
543typedef struct sdp_ftrn_profile * sdp_ftrn_profile_p;
544
545/* Keep this in sync with sdp_opush_profile */
510struct sdp_irmc_profile
511{
512 uint8_t server_channel;
513 uint8_t supported_formats_size;
514 uint8_t supported_formats[30];
515};
516typedef struct sdp_irmc_profile sdp_irmc_profile_t;
517typedef struct sdp_irmc_profile * sdp_irmc_profile_p;

--- 12 unchanged lines hidden (view full) ---

530 uint8_t load_factor;
531 uint8_t reserved;
532 uint8_t ip_subnet_radius;
533 uint32_t ip_subnet;
534};
535typedef struct sdp_lan_profile sdp_lan_profile_t;
536typedef struct sdp_lan_profile * sdp_lan_profile_p;
537
546struct sdp_irmc_profile
547{
548 uint8_t server_channel;
549 uint8_t supported_formats_size;
550 uint8_t supported_formats[30];
551};
552typedef struct sdp_irmc_profile sdp_irmc_profile_t;
553typedef struct sdp_irmc_profile * sdp_irmc_profile_p;

--- 12 unchanged lines hidden (view full) ---

566 uint8_t load_factor;
567 uint8_t reserved;
568 uint8_t ip_subnet_radius;
569 uint32_t ip_subnet;
570};
571typedef struct sdp_lan_profile sdp_lan_profile_t;
572typedef struct sdp_lan_profile * sdp_lan_profile_p;
573
574/* Keep this in sync with sdp_irmc_profile */
538struct sdp_opush_profile
539{
540 uint8_t server_channel;
541 uint8_t supported_formats_size;
542 uint8_t supported_formats[30];
543};
544typedef struct sdp_opush_profile sdp_opush_profile_t;
545typedef struct sdp_opush_profile * sdp_opush_profile_p;
546
547struct sdp_sp_profile
548{
549 uint8_t server_channel;
550 uint8_t reserved[3];
551};
552typedef struct sdp_sp_profile sdp_sp_profile_t;
553typedef struct sdp_sp_profile * sdp_sp_profile_p;
554
575struct sdp_opush_profile
576{
577 uint8_t server_channel;
578 uint8_t supported_formats_size;
579 uint8_t supported_formats[30];
580};
581typedef struct sdp_opush_profile sdp_opush_profile_t;
582typedef struct sdp_opush_profile * sdp_opush_profile_p;
583
584struct sdp_sp_profile
585{
586 uint8_t server_channel;
587 uint8_t reserved[3];
588};
589typedef struct sdp_sp_profile sdp_sp_profile_t;
590typedef struct sdp_sp_profile * sdp_sp_profile_p;
591
592int32_t sdp_register_service (void *xss, uint16_t uuid,
593 bdaddr_p const bdaddr, uint8_t const *data,
594 uint32_t datalen, uint32_t *handle);
595int32_t sdp_unregister_service (void *xss, uint32_t handle);
596int32_t sdp_change_service (void *xss, uint32_t handle,
597 uint8_t const *data, uint32_t datalen);
598
555__END_DECLS
556
557#endif /* ndef _SDP_H_ */
558
599__END_DECLS
600
601#endif /* ndef _SDP_H_ */
602