-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
discovery/avahi: package moved into its separate repository
- Loading branch information
1 parent
a182410
commit 519dc40
Showing
31 changed files
with
158 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tags | ||
*.swp | ||
*.orig | ||
coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
BSD 2-Clause License | ||
|
||
Copyright (c) 2024, Alexander Pevzner | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ../../Rules.mak | ||
include Rules.mak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# CGo binding for Avahi | ||
# | ||
# Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
# See LICENSE for license terms and conditions | ||
# | ||
# Common part for Makefiles | ||
|
||
# ----- Environment ----- | ||
|
||
TOPDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
GOFILES := $(wildcard *.go) | ||
GOTESTS := $(wildcard *_test.go) | ||
PACKAGE := $(shell basename $(shell pwd)) | ||
|
||
# ----- Parameters ----- | ||
|
||
GO := go | ||
GOTAGS := $(shell which gotags 2>/dev/null) | ||
GOLINT := $(shell which golint 2>/dev/null) | ||
|
||
# ----- Common targets ----- | ||
|
||
.PHONY: all | ||
.PHONY: clean | ||
.PHONY: cover | ||
.PHONY: tags | ||
.PHONY: test | ||
.PHONY: vet | ||
|
||
# Recursive targets | ||
all: subdirs_all do_all | ||
clean: subdirs_clean do_clean | ||
lint: subdirs_lint do_lint | ||
test: subdirs_test do_test | ||
vet: subdirs_vet do_vet | ||
|
||
# Non-recursive targets | ||
cover: do_cover | ||
|
||
# Dependencies | ||
do_all: tags | ||
|
||
# Default actions | ||
tags: | ||
do_all: | ||
do_clean: | ||
do_cover: | ||
do_lint: | ||
do_test: | ||
do_vet: | ||
|
||
# Conditional actions | ||
ifneq ($(GOFILES),) | ||
|
||
do_all: | ||
$(GO) build | ||
ifneq ($(GOTESTS),) | ||
$(GO) test -c | ||
rm -f $(PACKAGE).test | ||
endif | ||
|
||
do_cover: | ||
ifneq ($(GOTESTS),) | ||
go test -coverprofile=coverage.out | ||
go tool cover -html=coverage.out | ||
rm -f coverage.out | ||
endif | ||
|
||
do_lint: | ||
ifneq ($(GOLINT),) | ||
$(GOLINT) -set_exit_status | ||
endif | ||
|
||
do_test: | ||
ifneq ($(GOTESTS),) | ||
$(GO) test | ||
endif | ||
|
||
do_vet: | ||
$(GO) vet | ||
|
||
endif | ||
|
||
ifneq ($(GOTAGS),) | ||
tags: | ||
cd $(TOPDIR); gotags -R . > tags | ||
endif | ||
|
||
ifneq ($(CLEAN),) | ||
do_clean: | ||
rm -f $(CLEAN) | ||
endif | ||
|
||
# ----- Subdirs handling | ||
|
||
subdirs_all subdirs_lint subdirs_test subdirs_vet subdirs_clean: | ||
@for i in $(SUBDIRS); do \ | ||
$(MAKE) -C $$i $(subst subdirs_,,$@) || exit 1; \ | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module go-avahi | ||
|
||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// MFP - Miulti-Function Printers and scanners toolkit | ||
// Cgo binding for Avahi | ||
// CGo binding for Avahi | ||
// | ||
// Copyright (C) 2024 and up by Alexander Pevzner ([email protected]) | ||
// See LICENSE for license terms and conditions | ||
|