mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-30 01:03:44 -04:00
43 lines
1.4 KiB
C
Executable File
43 lines
1.4 KiB
C
Executable File
/*
|
|
* $Id: $
|
|
*
|
|
* Header functions for UPnP discovery
|
|
*
|
|
* Copyright (C) 2007 Ron Pedde (ron@pedde.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
/**
|
|
* This could probably be as easily (or better?) done via some
|
|
* UPnP library, but I don't see any that are cross-platform to
|
|
* the variety of platforms I want to port to, not to mention that
|
|
* it's just some simple UDP broadcasts.
|
|
*/
|
|
|
|
|
|
#ifndef _UPNP_H_
|
|
#define _UPNP_H_
|
|
|
|
#define UPNP_UUID "12345678-1234-1234-1234-123456789013"
|
|
|
|
extern int upnp_init(void);
|
|
extern int upnp_tick(void);
|
|
extern int upnp_deinit(void);
|
|
extern void upnp_add_packet(char *group_id, char *location,
|
|
char *usn, char *nt, char *body);
|
|
|
|
#endif /* _UPNP_H_ */
|