Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
115 additions
and
12 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
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,16 @@ | ||
--- prnt/cupsext/cupsext.c.orig 2023-06-02 08:02:35 UTC | ||
+++ prnt/cupsext/cupsext.c | ||
@@ -89,6 +89,13 @@ Sanjay Kumar | ||
#include "hp_ipp.h" | ||
#include "utils.h" | ||
|
||
+void _releaseCupsInstance(void); | ||
+int addCupsPrinter(char *name, char *device_uri, char *location, | ||
+ char *ppd_file, char *model, char *info); | ||
+int delCupsPrinter(char *pr_name); | ||
+int setDefaultCupsPrinter(char *pr_name); | ||
+int controlCupsPrinter(char *pr_name, int op); | ||
+ | ||
/* Ref: PEP 353 (Python 2.5) */ | ||
#if PY_VERSION_HEX < 0x02050000 | ||
typedef int Py_ssize_t; |
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,11 @@ | ||
--- prnt/hpcups/Mode9.cpp.orig 2023-06-02 08:02:35 UTC | ||
+++ prnt/hpcups/Mode9.cpp | ||
@@ -203,7 +203,7 @@ bool Mode9::Process(RASTERDATA* input) | ||
unsigned int offset,byte_count,rem_count; | ||
Mode9_comtype command; | ||
char* dest= (char*) compressBuf; | ||
- register char *dptr=dest; | ||
+ char *dptr=dest; | ||
|
||
while ( size > 0 ) | ||
{ |
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,13 @@ | ||
--- prnt/hpcups/ModeDeltaPlus.cpp.orig 2023-06-02 08:02:35 UTC | ||
+++ prnt/hpcups/ModeDeltaPlus.cpp | ||
@@ -241,8 +241,8 @@ bool ModeDeltaPlus::compress (BYTE *outmem, | ||
const uint32_t inheight, | ||
uint32_t horz_ht_dist) | ||
{ | ||
- register BYTE *outptr = outmem; | ||
- register uint32_t col; | ||
+ BYTE *outptr = outmem; | ||
+ uint32_t col; | ||
const BYTE *seedrow; | ||
uint32_t seedrow_count = 0; | ||
uint32_t location = 0; |
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,11 @@ | ||
--- prnt/hpps/pserror.c.orig 2023-06-02 08:02:35 UTC | ||
+++ prnt/hpps/pserror.c | ||
@@ -24,7 +24,7 @@ void message(int flags, char *format, ...) | ||
void message(int flags, char *format, ...) | ||
{ | ||
va_list args ; | ||
- static column = 0 ; /* current screen column for message wrap */ | ||
+ static int column = 0 ; /* current screen column for message wrap */ | ||
char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */ | ||
char *bufptr = msgbuf ; /* message buffer pointer */ | ||
|
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,10 @@ | ||
--- scan/sane/bb_ledm.c.orig 2023-06-02 08:02:36 UTC | ||
+++ scan/sane/bb_ledm.c | ||
@@ -16,6 +16,7 @@ | ||
# include <string.h> | ||
# include <fcntl.h> | ||
# include <math.h> | ||
+# include <unistd.h> | ||
# include "sane.h" | ||
# include "saneopts.h" | ||
# include "hpmud.h" |
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,10 @@ | ||
--- scan/sane/http.c.orig 2023-06-02 08:02:36 UTC | ||
+++ scan/sane/http.c | ||
@@ -36,6 +36,7 @@ | ||
#include <string.h> | ||
#include <syslog.h> | ||
#include <ctype.h> | ||
+#include <unistd.h> | ||
#include "hpmud.h" | ||
#include "http.h" | ||
|
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