<commit_before>Bluetooth network service API description
*****************************************

Copyright (C) 2006-2007  <NAME> <<EMAIL>>


Network Manager hierarchy
=========================

Interface	org.bluez.network.Manager
Object path	/org/bluez/network

Methods		array{string} ListServers()

			Returns an array of available network devices paths.
			Currently only NAP and GN are supported.

		string FindServer(string pattern)

			Returns server path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		string CreateConnection(string address, string uuid)

			Creates a network connection object(NAP or GN).

			Possible errors: org.bluez.network.Error.AlreadyExists
			                 org.bluez.network.Error.NotSupported
			                 org.bluez.network.Error.ConnectionAttemptFailed
			                 org.bluez.network.Error.Failed

		void RemoveConnection(string path)

			Removes a network connection object for a given path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		array{string} ListConnections()

			Returns an array of available network connections paths.

		string FindConnection(string pattern)

			Returns connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		string LastConnection()

			Returns last connected connection path, if none is connected
			fallback to last created connection.

			Possible errors: org.bluez.network.Error.DoesNotExist

		string DefaultConnection()

			Returns default connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist

		string ChangeDefaultConnection(string pattern)

			Changes default connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist

Signals		void ConnectionCreated(string path)

		void ConnectionRemoved(string path)

		void DefaultConnectionChanged(string path)


Network Server hierarchy (experimental)
=======================================

Interface	org.bluez.network.Server
Object path	/org/bluez/network/server*

Methods		string GetUUID()

			Returns the UUID-128 string representation of
			the server.

		void Enable()

			Enable server and updates service record.

			Possible errors: org.bluez.network.Error.AlreadyExists
			                 org.bluez.network.Error.Failed

		void Disable()

			Disable server and remove service record.

			Possible errors: org.bluez.network.Error.Failed

		void SetName(string name)

			Sets the name attribute.

		string GetName()

			Returns the service name.

		void SetAddressRange(string start, string end)

			TBD

		void SetRouting(string interface)

			TBD

		void SetSecurity(bool enable)

			Enable or disable encryption.

		bool GetSecurity()

			Returns server encryption.

		dict GetInfo()

			Returns the server properties.

Signals		void Enabled()

		void Disabled()


Network Connection hierarchy (experimental)
===========================================

Interface	org.bluez.network.Connection
Object path	/org/bluez/network/connection*<commit_msg>network-api: fixed server paths<commit_after>Bluetooth network service API description
*****************************************

Copyright (C) 2006-2007  <NAME> <<EMAIL>>


Network Manager hierarchy
=========================

Interface	org.bluez.network.Manager
Object path	/org/bluez/network

Methods		array{string} ListServers()

			Returns an array of available network devices paths.
			Currently only NAP and GN are supported.

		string FindServer(string pattern)

			Returns server path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		string CreateConnection(string address, string uuid)

			Creates a network connection object(NAP or GN).

			Possible errors: org.bluez.network.Error.AlreadyExists
			                 org.bluez.network.Error.NotSupported
			                 org.bluez.network.Error.ConnectionAttemptFailed
			                 org.bluez.network.Error.Failed

		void RemoveConnection(string path)

			Removes a network connection object for a given path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		array{string} ListConnections()

			Returns an array of available network connections paths.

		string FindConnection(string pattern)

			Returns connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist
			                 org.bluez.network.Error.Failed

		string LastConnection()

			Returns last connected connection path, if none is connected
			fallback to last created connection.

			Possible errors: org.bluez.network.Error.DoesNotExist

		string DefaultConnection()

			Returns default connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist

		string ChangeDefaultConnection(string pattern)

			Changes default connection path.

			Possible errors: org.bluez.network.Error.DoesNotExist

Signals		void ConnectionCreated(string path)

		void ConnectionRemoved(string path)

		void DefaultConnectionChanged(string path)


Network Server hierarchy (experimental)
=======================================

Interface	org.bluez.network.Server
Object path	/org/bluez/network/{gn, nap, panu}

Methods		string GetUUID()

			Returns the UUID-128 string representation of
			the server.

		void Enable()

			Enable server and updates service record.

			Possible errors: org.bluez.network.Error.AlreadyExists
			                 org.bluez.network.Error.Failed

		void Disable()

			Disable server and remove service record.

			Possible errors: org.bluez.network.Error.Failed

		void SetName(string name)

			Sets the name attribute.

		string GetName()

			Returns the service name.

		void SetAddressRange(string start, string end)

			TBD

		void SetRouting(string interface)

			TBD

		void SetSecurity(bool enable)

			TBD

		bool GetSecurity()

			Returns server encryption.

		dict GetInfo()

			Returns the server properties.

Signals		void Enabled()

		void Disabled()


Network Connection hierarchy (experimental)
===========================================

Interface	org.bluez.network.Connection
Object path	/org/bluez/network/connection*
{'fraction_non_alphanumeric': 0.10739324410452518, 'fraction_numerical': 0.003505417463352454, 'mean_word_length': 3.5190784737221024, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4975766', 'n_tokens_mistral': 1951, 'n_tokens_neox': 1580, 'n_words': 493}