// Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // The go-ethereum library 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 Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . package api import ( "encoding/json" "fmt" "math/big" "reflect" "github.com/ethereum/go-ethereum/rpc/shared" ) type WaitForBlockArgs struct { MinHeight int Timeout int // in seconds } func (args *WaitForBlockArgs) UnmarshalJSON(b []byte) (err error) { var obj []interface{} if err := json.Unmarshal(b, &obj); err != nil { return shared.NewDecodeParamError(err.Error()) } if len(obj) > 2 { return fmt.Errorf("waitForArgs needs 0, 1, 2 arguments") } // default values when not provided args.MinHeight = -1 args.Timeout = -1 if len(obj) >= 1 { var minHeight *big.Int if minHeight, err = numString(obj[0]); err != nil { return err } args.MinHeight = int(minHeight.Int64()) } if len(obj) >= 2 { timeout, err := numString(obj[1]) if err != nil { return err } args.Timeout = int(timeout.Int64()) } return nil } type MetricsArgs struct { Raw bool } func (args *MetricsArgs) UnmarshalJSON(b []byte) (err error) { var obj []interface{} if err := json.Unmarshal(b, &obj); err != nil { return shared.NewDecodeParamError(err.Error()) } if len(obj) > 1 { return fmt.Errorf("metricsArgs needs 0, 1 arguments") } // default values when not provided if len(obj) >= 1 && obj[0] != nil { if value, ok := obj[0].(bool); !ok { return fmt.Errorf("invalid argument %v", reflect.TypeOf(obj[0])) } else { args.Raw = value } } return nil } tion value='2020Q2'>2020Q2 FreeBSD Ports (https://github.com/freebsd/freebsd-ports)
aboutsummaryrefslogtreecommitdiffstats
path: root/audio
Commit message (Expand)AuthorAgeFilesLines
* Add another MASTER_SITE to fix distfile fennerage.Jim Mock2000-02-081-1/+2
* fix my mistakeMichael Haro2000-02-081-2/+4
* Update to 0.2.17Ade Lovett2000-02-072-3/+3
* Remove extra whitespaces (portlint).Dirk Froemberg2000-02-053-7/+6
* Enable support for RadioTrack radio cards.Chris D. Faulhaber2000-02-054-9/+31
* Update to 2.25Yukihiro Nakai2000-02-032-4/+4
* Update to version 2.1. It is now built with GTK+ unlessChris Piazza2000-02-034-8/+26
* portlintMichael Haro2000-02-031-2/+1
* $Id$ -> $FreeBSD$Michael Haro2000-02-031-1/+1
* fix bad dependency pathMichael Haro2000-02-031-1/+1
* portlintMichael Haro2000-02-032-3/+2
* portlintMichael Haro2000-02-032-0/+3
* Correct patch breakage introduced in rev 1.15.Joseph Koshy2000-01-311-17/+23
* Adding krio version 19990721.Steve Price2000-01-307-0/+76
* Standardize my e-mail as reg@FreeBSD.org.Jeremy Lea2000-01-303-3/+3
* fix some pkg/MESSAGE stuffMichael Haro2000-01-305-7/+6
* Add mixer fixYukihiro Nakai2000-01-302-0/+22
* Adding yamt version 0.2.Steve Price2000-01-296-0/+49
* use -pthread instead of -lc_rMichael Haro2000-01-291-0/+41
* use -pthread instead of -lc_r and other minor changesMichael Haro2000-01-291-6/+4
* Make this port compile on -current. Fix CFLAGS and libc_r usage.Jeremy Lea2000-01-284-26/+36
* Correct usage of libc_r.Jeremy Lea2000-01-282-3/+14
* Fix this for -current.Jeremy Lea2000-01-281-2/+0
* Enable 3DNow! support. You can set OPT_ARCH=3dnow to get an mpg123 withBrian Feldman2000-01-282-29/+31
* Add -pedantic to override the default -pedantic-errors, to allowBill Fenner2000-01-281-0/+11
* Make this compile on -CURRENTJim Mock2000-01-282-0/+15
* Make this compile on -current and respect CFLAGS.Jeremy Lea2000-01-272-6/+33
* PLIST fix.Yukihiro Nakai2000-01-271-0/+4
* Remove 'ipv6' from CATEGORIES, because this port support IPv4 only nowMunechika SUMIKAWA2000-01-271-1/+1
* Add cdda2wav feature.Yukihiro Nakai2000-01-262-4/+23
* Support IPv6.Munechika SUMIKAWA2000-01-263-13/+30
* MASTER_SITE fix.Yukihiro Nakai2000-01-261-1/+1
* fix checksum.Munechika SUMIKAWA2000-01-261-1/+1
* Update to 2.24cYukihiro Nakai2000-01-252-6/+6
* fix building error on FreeBSD-current.Munechika SUMIKAWA2000-01-252-1/+14
* Update port to 0.5Chris D. Faulhaber2000-01-243-6/+6
* Fix boneheadedness. Such great programming practicesChris Piazza2000-01-247-0/+74
* Correct grammar in commentsKris Kennaway2000-01-231-3/+3
* add dependency on gtk. found by bentoMichael Haro2000-01-221-0/+2
* add WWW:Michael Haro2000-01-221-0/+2
* * Small cleanup of the MakefileChris D. Faulhaber2000-01-212-4/+4
* Add a WWW linkJim Mock2000-01-211-0/+2
* - Add sfreflect and sflaunch to be installedR. Imura2000-01-157-9/+99
* Correct MD5 checksum.Chris D. Faulhaber2000-01-131-1/+1
* Fix pkg/PLISTChris D. Faulhaber2000-01-111-2/+2
* Update to 0.3.8Ade Lovett2000-01-103-3/+8
* Provide FreeBSD pthread capability to the GNU configure scriptChris D. Faulhaber2000-01-101-4/+2
* Update to 0.3Chris D. Faulhaber2000-01-092-4/+6
* A program to rename mp3 files based on their id3tag.Ade Lovett2000-01-096-0/+33
* Fix distfile fennerageChris Piazza2000-01-081-1/+1
* Upgrade to 0.91.Dirk Froemberg2000-01-082-4/+4
* Change MAINTAINER address from nacai@iname.comYukihiro Nakai2000-01-072-2/+2
* Activate knapsterChris D. Faulhaber2000-01-071-0/+1
* Napster client for KDEChris D. Faulhaber2000-01-075-0/+43
* Add mp3blaster.Chris Piazza2000-01-066-0/+50
* Update port to 2.4Chris D. Faulhaber2000-01-066-111/+140
* Update port to 0.99.4Chris D. Faulhaber2000-01-062-3/+3
* Update to 0.3.4Chris Piazza2000-01-033-25/+5
* Clarify the meaning of "console based" --- ie. "text-based".Tim Vanderhoek2000-01-031-1/+1
* update to 3.1.8Michael Haro2000-01-022-3/+3
* *smacks self* -- GNOME ports need to depend on GNOME!Chris Piazza2000-01-021-0/+2
* Update to version 7.1.Steve Price2000-01-016-407/+153
* Update to reflect new MASTER_SITE.Steve Price1999-12-311-1/+1
* Fix a path in one of the MASTER_SITESChris Piazza1999-12-311-1/+1
* Upgraded to version 0.9BETA, the old version is no longer available.Donald Burr1999-12-303-8/+10
* * Removed dependancy to gmakeSteve Price1999-12-304-129/+227
* General comment cleanups.Tim Vanderhoek1999-12-299-9/+9
* Add support for FreeBSD/Alpha and minor tweaks to Makefile.Steve Price1999-12-28