From patchwork Thu May 16 09:33:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Sayers X-Patchwork-Id: 48907 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:3a48:b0:1af:fc2d:ff5a with SMTP id zu8csp2115206pzb; Thu, 16 May 2024 02:34:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUv3/ug+uzuj14Qd1dTkuMA/MyS8oIZVuS7himfF8Rj00GCUuOM2wIrVGbPmgNouzmqHT8+bOPocCuQxePOzlW8vbHbyWGyMwnd3g== X-Google-Smtp-Source: AGHT+IEWlgGWP8OxH8nbv/VG3d6cYjzQfcSkA6twnRBW6QrsouPwin+amKg/BatV41CZfw5WvME+ X-Received: by 2002:a17:906:560d:b0:a5a:250d:de57 with SMTP id a640c23a62f3a-a5a2d57a3ddmr1195483566b.19.1715852070897; Thu, 16 May 2024 02:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715852070; cv=none; d=google.com; s=arc-20160816; b=wnZ3OnH7FNw+Gsv01GUoEaBbthDCg7cwSb7cqts12EOvXmGkItKOXUxfw+2oPjw/r1 d1RgB0QDy3ge91VEn+MRnkeOPuhH11OMBVLwm8EauzOPZBWjCnImjHa3XNDn7xcuBvEl X04cNwkAoLpg1/4Sqou/q7i/REwUUbI4u2iDq2+A5vqjn9ROKK0IfL4dKFzfr3rm/wM2 q/i4Toim1tdfxDLcnxa//4WTZBPS+KJPyH9jRTyAHiRgnyvwcpHlSURMvEWAol0T5ejY NXNRfBWWB+b+RHEZxRjJSnJbd8qL6vWK1UvwlgsUE86qwOyWof9y/4lEdgKlNzcMSRvb /cyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=/kA1fcQZaGT6TdrdVwEk6cVBMXmZsN/RGZ6zeLrmDC4=; fh=73ExZnkQ8FYbu/qeQNmI0dtHCfShNh8/NmZJs1umltM=; b=y984i9VMoBMmZE2skdeYP4omnpHaugtHJZ5FncLiwapI18KBqzqOtXoOt7f7v6zyDG OpeB6Y90E4aizAPJ3MtRQ9Km+BYwe5V06GBChEwMk43jEwJ90eJZoBaCvyYdIJkqp/yw bSBu+w1DqCO3Wng/wBowYRVGeFQnn8h0PRWa8ElLny9Un+xX4nQq2s58ItKUzBkruWFy kbaJQb8thzjv2XayWAxULf/LeGBHN/4xmMBjNkQg0hUYUIVTyNLBxlMmiS47JkcjfYHY gI2nwsw4OO2f0hNiEyaDS4a+l4MeHV/8up9ze6pSCGprbCta5SeUQzTawHgpPRUx9Llj ZOow==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a5a1794634asi854684566b.166.2024.05.16.02.34.30; Thu, 16 May 2024 02:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0353B68D544; Thu, 16 May 2024 12:34:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from b-painless.mh.aa.net.uk (b-painless.mh.aa.net.uk [81.187.30.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 71EE868D47E for ; Thu, 16 May 2024 12:34:06 +0300 (EEST) Received: from 0.b.4.b.7.4.0.8.c.4.a.5.d.8.b.2.0.5.8.0.9.1.8.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:819:850:2b8d:5a4c:8047:b4b0] helo=andrews-2024-laptop.lan) by painless-b.tch.aa.net.uk with esmtp (Exim 4.96) (envelope-from ) id 1s7XUz-002QR7-11; Thu, 16 May 2024 10:34:05 +0100 From: Andrew Sayers To: ffmpeg-devel@ffmpeg.org Date: Thu, 16 May 2024 10:33:34 +0100 Message-ID: <20240516093403.3763258-2-ffmpeg-devel@pileofstuff.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240516093403.3763258-1-ffmpeg-devel@pileofstuff.org> References: <94b3be81-0777-fbc1-8ba8-a39a8f6397d4@passwd.hu> <20240516093403.3763258-1-ffmpeg-devel@pileofstuff.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 1/5] Add documentation for ff_neterrno() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andrew Sayers Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: mPWoRF2rm194 --- libavformat/network.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libavformat/network.h b/libavformat/network.h index ca214087fc..728c20c9bb 100644 --- a/libavformat/network.h +++ b/libavformat/network.h @@ -57,6 +57,11 @@ #define getsockopt(a, b, c, d, e) getsockopt(a, b, c, (char*) d, e) #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*) d, e) +/* + * @brief AVERROR for the latest network function + * @return platform-specific AVERROR value + * @note Error is based on WSAGetLastError() (Windows) or `errno` (otherwise) + */ int ff_neterrno(void); #else #include @@ -65,6 +70,11 @@ int ff_neterrno(void); #include #include +/* + * @brief AVERROR for the latest network function + * @return platform-specific AVERROR value + * @note Error is based on WSAGetLastError() (Windows) or `errno` (otherwise) + */ #define ff_neterrno() AVERROR(errno) #endif /* HAVE_WINSOCK2_H */